You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jacques Distler <di...@golem.ph.utexas.edu> on 1999/03/25 17:12:41 UTC
mod_log-any/4129: Instructions for simulating RefererIgnore incorrect
>Number: 4129
>Category: mod_log-any
>Synopsis: Instructions for simulating RefererIgnore incorrect
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: doc-bug
>Submitter-Id: apache
>Arrival-Date: Thu Mar 25 08:20:03 PST 1999
>Last-Modified:
>Originator: distler@golem.ph.utexas.edu
>Organization:
apache
>Release: 1.3.6
>Environment:
NextStep3.3 (hppa), with NeXT's cc compiler.
1> uname -a
NEXTSTEP golem Rose2L 7100LC
>Description:
<http://www.apache.org/docs/mod/mod_log_config.html> says:
" Beginning with Apache 1.3.5, the mod_log_config module has also
subsumed the RefererIgnore functionality from _mod_log_referer_. The
effect of RefererIgnore can be achieved by combinations of _SetEnvIf_
directives and conditional CustomLog definitions.
and <http://www.apache.org/docs/mod/mod_setenvif.html> gives the example
SetEnvIf Request_URI "\.(gif)|(jpg)|(xbm)$" object_is_image
SetEnvIf Referer www\.mydomain\.com intra_site_referral
The first will set the envariable object_is_image if the request was
for an image file, and the second sets intra_site_referral if the
referring page was somewhere on the www.mydomain.com Web site.
This does NOT, however, simulate the behaviour of the RefererIgnore directive in
mod_log_referer.
>How-To-Repeat:
>Fix:
The "correct" construction, which reproduces the behaviour of
RefererIgnore www.mydomain.com
is
SetEnvIf Referer "^http://www\.mydomain\.com|www\.mydomain\.com" intra_site_referral
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]