Forum Moderators: phranque
I was able to prevent others from using my images with mod_rewrite. However, it seems like this only works if users have cookie enabled. If they turn off their cookie, then they can see my images posted in other sites.
Can someone please shed some lights into this situation for me by explaining why this is so and how to make it work with both cookies enabled and disabled?
Thank you in advance for your help!
IndexIgnore *
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://localhost/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://****.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.****.com/.*$ [NC]
RewriteRule .*\.(css¦gif¦jpg¦ico¦png¦GIF¦JPG¦jpe¦jpeg).*$ - [G,L]