httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] log certain rewrites?
Date Mon, 20 Oct 2003 05:50:56 GMT
John Smith wrote:
> I use mod_rewrite to redirect requests for images
> linked to by leaching sites. Is there a way to log
> these? (I'd like to know the URLs)

Yes, I think, you could insert a rule that sets an environment variables,
which then is a condition for logging.

A pure guess:

    CustomLog logs/leacher_log referer env=leach_req

    # conditions
    RewriteRule ^/img/.* /dont_leach.png [env=leach_req:1]


Robert Andersson

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