View Single Post
Old 2005-07-10, 02:41 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
are you sure? Your links show up as broken for me. If you have the images cached, they will show up, i.e. you looked at it, put in the rules, tried again -- you might need to clear the cache. Also, if you send an empty referrer, the image will show up as per your rules.

As a side note, the 1.2.3.4 is supposed to represent your IP address.

Code:
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*thefetishfiles\.net(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?209\.16\.200\.208(:[0-9]+)?(/.*)?$
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]
ErrorDocument 400 http://www.thefetishfiles.net/
ErrorDocument 401 http://www.thefetishfiles.net/
ErrorDocument 403 http://www.thefetishfiles.net/
ErrorDocument 404 http://www.thefetishfiles.net/
ErrorDocument 501 http://www.thefetishfiles.net/
ErrorDocument 502 http://www.thefetishfiles.net/
ErrorDocument 503 http://www.thefetishfiles.net/
That's all you should need -- you've got two rulesets in there with one condition. Also, I added a / to the end of your error redirects just to save 1 301 redirect when the person is redirected.

Give that a try, it should do the trick.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote