Since yesterday (when I opened this blog) my apache access log it’s been filled with silly favicon.ico requests. They sum up to over 4000! Time to say STOP to favicon logs entry.

First I enabled the mod_setenvif module and then I put these instructions in my virtual host configuration:

 SetEnvIf Request_URI "^/favicon.ico$" dontlog
 customlog /logs/access.log combined  env=!dontlog

That’s all… bye bye favicon.

Oh, and here there’s another approach to the favicon.ico plague: Getting rid of favicon.ico. (It still logs favicon requests though).