Thursday, April 21, 2011

How to generate blank favicon programatically?

Hello. 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?

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

  • 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>
    
    Roy Tinker : Does IE7+ support the PNG file format for the favicon?
  • http://blankfavicon.com

0 comments:

Post a Comment