Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 78252 invoked from network); 20 Oct 2003 05:52:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Oct 2003 05:52:08 -0000 Received: (qmail 89826 invoked by uid 500); 20 Oct 2003 05:51:43 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89686 invoked by uid 500); 20 Oct 2003 05:51:42 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 89672 invoked from network); 20 Oct 2003 05:51:41 -0000 Received: from unknown (HELO mail.profundis.se) (213.80.46.101) by daedalus.apache.org with SMTP; 20 Oct 2003 05:51:41 -0000 X-ITHouse-Forward-Path: Received: From PROFUNDIS01 by mail.profundis.se (IT House Mail Server [TRIAL - 120 days left]); Mon, 20 Oct 2003 07:50:57 +0200 Message-ID: <01f901c396ce$21d56b50$652e50d5@profundis.se> Reply-To: "Robert Andersson" From: "Robert Andersson" To: References: <20031018020205.71257.qmail@web40704.mail.yahoo.com> Date: Mon, 20 Oct 2003 07:50:56 +0200 Organization: Profundis MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] log certain rewrites? X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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] See: http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewriterule http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#customlog Regards, Robert Andersson --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org