Log In · Register

 
prevent hotlinking problem, .htaccess problem
add1cted2f1re
post Mar 29 2006, 06:07 PM
Post #1


My name is really Matt... if you care.
******

Group: Member
Posts: 1,442
Joined: Oct 2005
Member No: 258,234



i want to prevent the hotlinking of images and i have this code...

it does what its supposed to, i mean, images cant be hotlinked, but what im trying to do is replace the hotlinked image with a different image and a link to my site....

this is what i have:

CODE
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?phoenixf1re.melilyn\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.melilyn.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://phoenixf1re.melilyn.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.hitherston.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.takecamera.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.autumn-sky.org.*$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: