View Single Post
Old 08-20-2003, 01:29 PM  
DerekT
Confirmed User
 
Join Date: Jun 2001
Location: Apple Valley, MN
Posts: 112
Here is an .htaccess file that I use. This should fix your problems with hotlinkers. Be sure to change the XXX.XXX.XXX.XXX to your IP address and domain.com to your own domain name.

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://XXX.XXX.XXX.XXX.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|asx|mpeg|mpg|avi|mov|asf|wmv|tif|png)$ http://www.domain.com [R,NC]
DerekT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote