PDA

View Full Version : prevent hotlinking?


kingping
02-22-2000, 08:26 PM
hi

i use to have a code i used in my .htaccess to prevent people from hotlinking images from my site and last time i believe i got it from this board, can someone post it for me or send me an email nicholas@iglou.com

thank you

TheDoc
02-23-2000, 02:26 AM
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://YOURDOMAIN.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.YOURDOMAIN.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]