View Single Post
Old 06-25-2003, 11:09 PM  
save11
Confirmed User
 
Join Date: Nov 2002
Location: rain city
Posts: 222
htaccess question

htaccess question:

Is this the proper format for blocking hotlinking by domain?
sogclub being the domain that is hotlinking

xxx being my (i wish) hehe domain



RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?sogclub.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://xxx.com/ [R,NC]

Also, can you insert ip in place of domain name with this format?
Thanks

ex:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?65.125.235.178.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://xxx.com/ [R,NC]
__________________
345682839
save11 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote