By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,760 Members | 1,585 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,760 IT Pros & Developers. It's quick & easy.

A browser definition file for crawlers

P: n/a
Hi all,

I'm trying to create a browser definition file (.browser) that matches crawlers
user agents. I don't want modify browser files in the Config system folder.
I'd like to use App_Browsers directory, instead.

I don't want to use Request.Browser.Crawler, because I'd like to be able
to use device filtering for crawlers.

So, for example, I would create a browser named "crawler", so I can use
this syntax in webform code:

<asp:Label ... crawler:Text="I'm a crawler" />

It should be an easy task.... but unfortunately it isn't.

Some crawlers put "Mozilla" in the user agent string (for example Googlebot),
and others not.

So, the result is that:

I cannot define my browser id "crawler" with "default" as parentID, because
crawlers that put "mozilla" in the user agent will match with "mozilla" browser.
I cannot define my browser id "crawler" with "mozilla" as parentID, because
crawlers that doesn't put "mozilla" in the user agent will not match.

Any ideas?

Thanks
May 26 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.