httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arg!!! Un bisho!!! <>
Subject Filter some IP address in logs
Date Sun, 14 Nov 1999 23:47:14 GMT

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

But it's not an obyous way, so it could be interesting to include this
somewhere in the FAQ/Documentation???

--      \|||||||/    Guillermo Pérez Pérez
     < o   o >      -
      \  L  /       -
 Onírica: Análisis, diseño e implantación de soluciones informáticas

View raw message