devxlogo

Determine if the Current Request Is from a Crawler in ASP.NET

Determine if the Current Request Is from a Crawler in ASP.NET

The System.Web.HttpBroswerCapabilities?has an important property called “Crawler” that enables us to handle requests from crawlers. Please check out the example below:

Var isCrawler = ((System.Web.Configuration.HttpCapabilitiesBase)Request.Browser).Crawler;

devx-admin

Share the Post: