Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

mod_rewrite and cookie problem.



4:51 pm on Jul 27, 2003 (gmt 0)

10+ Year Member

First of all, it is an honor to be part of this community. I know there are hundreds of mod_rewrite questions before this, and I've searched, but couldn't find any real solution to my problem.

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!


1:55 am on Jul 29, 2003 (gmt 0)

10+ Year Member

It'd difficult to suggest anything without seeing your mod_rewrite code.


4:17 pm on Jul 29, 2003 (gmt 0)

10+ Year Member

Thank you for answering. Sorry about that! Here's my mod_rewrite code:

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]


Featured Threads

Hot Threads This Week

Hot Threads This Month