This is an old revision of the document!
Apache
Don't log yourself
You can exclude your IP addresses or/and the specific user agent of your browsers :
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog SetEnvIf Remote_Addr "192\.168\.1\.4" dontlog SetEnvIf User-Agent "meandmyself" dontlog CustomLog ${APACHE_LOG_DIR}/mysite.fr-access.log combined env=!dontlog
You can customize you user agent using the “User Agent Switcher” extension if you are using Firefox, or setting the key general.useragent.override in about:config.
With this method you can also avoid logging robots or some pages, but if you use a good and well configured log parser (like awstats) it will do this job (even for your IP addresses, but not for the user agent).