You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Guille (Bisho)" <gu...@redestb.es> on 1999/11/11 02:07:12 UTC
Filter some IP address in logs
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???
--
Chao ___<E-MAILS>__________________________________
Guille! | guille@redestb.es bisho@writeme.com |
\|||||||/ | bisho@eurielec.etsit.upm.es |
< o o > |___<WEBS + Importantes>_____________________|
\ L / |*PAT: http://personal.redestb.es/guille |
---oOOo-------oOOo--- | (Pagina Alternativa de Teleko) |
Guillermo Pérez Pérez |*Eurielec Linux 3.0!!! (basada en RH 6.0) |
Estudiante ETSIT (UPM) | http://www.eurielec.etsit.upm.es/linux/ |
|____________________________________________|
Nueva Eurielec Linux 3.0 (basada en RedHat 6.0). I love Linux!