httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David P. Donahue" <>
Subject [users@httpd] Referrer Problems
Date Thu, 23 Jun 2005 15:41:35 GMT
Running Apache 1.3.31 on Slackware 10.0

In my httpd.conf file, I have the following:

SetEnvIfNoCase Referer "^" local_ref=1
<FilesMatch ".jpg">
     Order Allow,Deny
     Allow from env=local_ref

The idea being that the server will only return a .jpg file if it was 
referred from a page on my website.  However, often enough to be of 
concern, users are often (but not always) denied .jpg files even with 
the proper referrer in the headers.  My error_log file shows that the 
"client was denied by server configuration."  However, my referrer_log 
file shows the proper referrer.  Also, if it was the case that the user 
had turned off their referrers for some reason, they would be denied 
_all_ .jpg files.  But they are only denied some at random times with no 
discernable pattern.

Any idea what might be causing this?  Is there a better approach to 
securing .jpg files from outside linkage than what I am doing?  Any help 
would be much appreciated, thanks.

David P. Donahue

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message