View Single Post
Old 2009-05-27, 06:35 AM   #2
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
Pagan I have this in my .htaccess and works great but you need to include so many url's as you need to enable hotlinking.

## DISABLE HOTLINKING
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?lezzietown.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rearentrylovers.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?eroticove.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?whatever.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?whatever.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?whatever.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?whatever.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|png|js|css)$ - [F]

I hope this helps

Last edited by pc; 2009-05-27 at 06:37 AM.. Reason: if there is more efficient technique i will also like to hear
pc is offline   Reply With Quote