Way to block hotlinking to just specfic domains?

Fix it!!

Way to block hotlinking to just specfic domains?

Postby GiZiM » Fri Mar 12, 2004 9:13 am

Ok i host alot of forums pics on clubrsx.com but of course this in the internet and everybody and there grandmother hotlinks them also.
in THIS script is there a way to block some but allow some.
The deny commands just kill my site

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://pictures.domian.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain2.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain3.com/.*$ [NC]
RewriteRule .*.*$ http://www.domain4.com [L,R]
GiZiM
 
Posts: 1
Joined: Fri Mar 12, 2004 9:08 am

Return to Security with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 15 guests

cron