Apache Server configuration support - RewriteCond using HTTP_REFERER does not work for some users

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2004 > RewriteCond using HTTP_REFERER does not work for some users





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RewriteCond using HTTP_REFERER does not work for some users
Jan Harder

2004-04-27, 2:33 pm

Hello,

I'm trying to protect some images against leeching and used the
following configuration in httpd.conf in a virtual server context:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !.*mydomain.(de|com).*
RewriteRule .*/path/to/images.* - [F]

It works fine on some computers, but on some machines it always sends
out the 403, even if the referer is correkt (matches mydomain.(de|com)).

All Computers I tested with use IE6 and send correct referers. Any idea
what could be wrong?

Jan Harder
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com