server-side

Mute favicon.ico error log

C/H 2018. 7. 23. 08:30


favicon.ico error log

127.0.0.1 - - [19/Jul/2018:22:20:28 +0900] "GET /favicon.ico HTTP/1.1" 499 0 "http://crawler4php.com/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"

Mute /favicon.ico error log

#Nginx 
location = /favicon.ico {
    log_not_found off;
}

#Apache
Redirect 404 /favicon.ico
<Location /favicon.ico>
   ErrorDocument 404 "No favicon"
</Location>

# .htaccess
<IfModule mod_alias.c>
    RedirectMatch 403 favicon.ico
</IfModule>

Using Html codes


# Chreom, Safari <link rel="icon" href="data:;base64,="> #html5 <link rel="icon" href="data:;base64,iVBORw0KGgo=">


반응형