A browser definition file for crawlers

S

Stefano

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top