Question

I have no favicon on my web site so there are numerous of failed log entry and I decided to rewrite favicon.ico get request to a page that will generate blank file and return it to a browser?

How do you think, is it possible? Could you please help me a bit how to do that?

Was it helpful?

OTHER TIPS

If you really want it to be blank, I would generate a blank file and place it there. Generating it seems overkill/unnecessary.

If you don't want to create a physical file, I would suggest adding

<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />

in the head section

Source http://davidwalsh.name/blank-favicon

You need a white 16x16 .ico file placed somewhere on your site subfolders, usually "img/favicon.ico"

Then add a refference to this file in yout masterpage

<head runat="server">
    <link rel="Icon" type="image/png" href="img/favicon.ico" />
</head>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top