Hmmm.. okay. I am starting to understand it a little. Is it better to do an .htaccess for each domain?
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?eroticove.com [NC]
RewriteRule \.(jpg|gif)$ - [NC,F,L]
If I follow you all right, that should be only what I need to protect my images (I only use .jpg and .gif) from all outside hotlinkers, but allow my sites to share those images. But can something so light be enough? Are there ways around it? Do I really need to block IPs?
Here's the .htaccess file I had up through March, and I still had a ton of issues with hotlinking.
#--ANTI-HOTLINK--
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^(http://|https://)(www.)?(eroticove.com).*$ [NC]
RewriteRule \.(jpe?g|gif|bmp|png|.wmv)$ - [F]
#++ANTI-HOTLINK++
ErrorDocument 404 /error.html
ErrorDocument 403 /error.html
ErrorDocument 500 /error.html
__________________
Is it naptime yet?
Last edited by Pagan; 2009-05-27 at 10:14 PM..
Reason: found old .htaccess file
|