Paresh Jagatia’s Weblog

Coolest things on ASP.NET Web developement…

Archive for the 'HTML' Category


Save HTTP 404

Posted by pareshjagatia on May 1, 2008

Once I had a call from my boss saying “Can you tell me if we have used any Favicon file in our website in any page or somewhere? As if we have used it, the file is not in place. Look at this IIS log it is full of 404s for the same file.”. And I was absolutely blank about this name. I opened the project and fired “Find in solution” but did not get any FavIcon reference.

 

Huh, a file that is not referenced anywhere in your website and still your IIS has 404 enteries? Later on I came to know that this is the file that is being shown into the address bar and in the favourites list in most browsers. More information about FavIcon can be found here.

 

And be sure to keep the Favicon file small in size to avoid high bandwidth usage, check this out on Scott’s BlogBut keep this file atleast to save 404 in your IIS log. One other file is Robots.txt that, I am not pretty sure, puts 404 in your IIS log when not found by the crawlers. You can check it out.

Posted in ASP.NET, HTML, IIS | Tagged: , , | 1 Comment »

Safer Email Address

Posted by pareshjagatia on May 1, 2008

There are email capture programs that grabs email addresses from web pages. Even you can write one for you using the WebClient and from the ResponseText put the regular expression to capture email.

Now a days there are some tools that makes you image for your email address to make your email address safe from the above kind of programs. But the solution is when the text is controlled by you. What if you are having a Content Management Solution and people are creating pages using the HTML editors and they put email address into the editor? Or say you have a lot of email addresses to convert, its a headache.

Let us not allow the email capture programs to grab text email addresses from our websites.

Please refer to this post on my another Post on the Blogger. As the ascii encoded text in the example is not working with the HTML Editor used in the WordPress post writer.

 Happy Programming…!!!

Posted in ASP.NET, HTML, Security | Tagged: , , | No Comments »