How to prevent local IP's in apache log?
I would like to know how to prevent my local network ip's from showing up in the apache access logs. I can't find any documentation on it. I know there must be a way!
Thanks Sam |
You can use grep to remove your local ip addresses if you view the logs with cat:
Code:
cat /var/log/apache/access.log | grep -v "192.168" |
Quote:
However I did find out how to set apache right. I just had to add this to block my network ip's: Code:
SetEnvIf Remote_Addr "10\.36\.36" dontlog |
All times are GMT -5. The time now is 03:38 AM. |