httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: Filter some IP address in logs
Date Sat, 27 Nov 1999 14:54:06 GMT
Arg!!! Un bisho!!! wrote:
> Reciently I was asked how to filter some ip addresses and
> make them not appear at the logs. The person who asked it
> knowns the way of doing it in the CERN server, but not in Apache.
> After searching for a while I find an elegant solution
> for this problem:
>   SetEnvIf Remote_Addr 127.0.0.[0-255] no_log
>   CustomLog common.log common env=!no_log

This won't have the desired behaviour because it isn't
using regular expressions properly.  This would do better
at matching what I think you're trying to match above:

SetEnvIf Remote_Addr ^127\.0\.0\. no_log
#ken    P-)}

Ken Coar                    <http://Web.Golux.Com/coar/>
Apache Software Foundation  <>
"Apache Server for Dummies" <http://ASFD.MeepZor.Com/>

View raw message