Public · Protected · Private
how to distinguish a request from bot and browser
Type: Public  |  Created: 2012-04-05  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • Request.Browser has a parameter Crawler. For Ex: System.Web.HttpBrowserCapabilities myBrowserCaps = Request.Browser; if (((System.Web.Configuration.HttpCapabilitiesBase)myBrowserCaps).Crawler) { return true;// iscrawler } else { return false;//is user/browser }
    2012-04-05 00:34
  • (((System.Web.Configuration.HttpCapabilitiesBase)myBrowserCaps).ActiveXControls) Above property can be used to find if the caller(browser) supports activex controls.
    2012-04-05 00:43
This blog is frozen. No new comments or edits allowed.