View Single Post
Old 09-29-2003, 03:46 AM  
gin
Confirmed User
 
Join Date: Sep 2003
Posts: 672
help with .htaccess

hey. i think there is alot of hotlinkers stealing images from my server. i want to block all images so fuckers can't hotlink. what i got is this.

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

when i put that up.. im getting an error, can anybody help?
gin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote