View Single Post
Old 2005-06-15, 06:27 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(.*@)?([a-z0-9-]+\.)*firstdomain\.com(:[0-9]+)?(/.*)?$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.*@)?([a-z0-9-]+\.)*seconddomain\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [F,L]

the ! in the prior rules means, if it DOESN'T equal the following.

In this case, you remove the !, the rules have an implicit AND, but, you want an OR, so, if it matches firstdomain OR seconddomain, block.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote