×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Determine if the Current Request Is from a Crawler in ASP.NET
 

Submitted by: Srinath MS(srinath_ms@yahoo.com)

Tuesday Mar 27th 2018 by Srinath MS

Language: .NET, Expertise: Intermediate - Learn how to use the "crawler" property of System.Web.HttpBroswerCapabilities to handle requests from crawlers.

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;
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved