December 2006 Entries

Search Engine Optimization for .NET

Search Engine Bot Detection So after I first noticed a large build up of strange session Urls in Google searches for my domain I've then done a little bit of research into the issue and discovered it was .NET not detecting that the search engine spider was Mozilla/5.0 compliant and inserting some rubbish session id into the url. It's been nearly a week since my changes to correct this and there's already a small indication of the 'healing' process. The pages are not out of the index yet, (and yes I do know that I 'could' remove them manually) but there...

posted @ Sunday, December 17, 2006 1:42 AM | Feedback (2)

ASP.NET 2.0 Mozilla Browser Detection Hole

It has recently come to my attention that there is something drastically wrong with the way search engines have been indexing my ASP.NET 2.0 blog. As I've started to explain previously, this is because of the way the browser detection is set up. To give a brief rundown ASP.NET 2.0 has a default browser definition which seems to assume that the default browser is fairly capable and supports common things such as javascript and cookies. A browser definition can get inherited into other definitions which can then override specific properties to update it for that specific browser or browser version. Apparently in...

posted @ Monday, December 11, 2006 12:58 PM | Feedback (11)

Cleaning Up ASP.NET Sessions in Google

ASP.NET and Dirty Urls There are two things that have been bothering me about pages that are getting indexed in Google from an ASP.NET application. The first is somehow there are ASP.NET Session Urls ending up in the Google index. This is bad because searchers that actually do click these links are likely to get a 500 error (internal server error) because they will be trying to access a page of an expired session. How is Google finding all these 'bad' urls? Well apparently there is no browser definition in ASP.NET 2.0 for the Googlebot's useragent string, so when the spider...

posted @ Wednesday, December 06, 2006 11:49 PM | Feedback (3)