I have people direct linking to images on my site. I've followed the directions for putting info in the .htaccess but the images are still coming up.
Here's whats currently in my htaccess:
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?you_domain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?you_domain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|wmv|mpg|mpeg|avi)$ http://www.you_domain.com/404.gif [R,NC]
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*you_domain.com/ [NC]
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule /*$ http://www.you_domain.com/404.gif [L,R]
I've also tried
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\TTT $ [L]
Also, to no avail.
I have the mod_rewrite lines in my httpd.conf so that the module is loaded when apache starts.. Do I need to restart apache after updating the htaccess files? What am I missing???
Any help would be appreciated.