Class Crawlers
Provides utility functions for search and social bot detection
Inheritance
System.Object
Crawlers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Web
Assembly: Azos.Web.dll
Syntax
public static class Crawlers
Methods
IsAnyMessengerBotUserAgent(String)
Returns true if the user agent represents a robot from any known messenger
Declaration
public static bool IsAnyMessengerBotUserAgent(string userAgent)
Parameters
Type | Name | Description |
---|---|---|
System.String | userAgent |
Returns
Type | Description |
---|---|
System.Boolean |
IsAnySearchCrawler(String)
Returns true if the user agent represents a crawler from any search engine
Declaration
public static bool IsAnySearchCrawler(string userAgent)
Parameters
Type | Name | Description |
---|---|---|
System.String | userAgent |
Returns
Type | Description |
---|---|
System.Boolean |
IsAnySearchCrawlerOrSocialBotUserAgent(String)
Returns true if the user agent represents a robot from any known social net or search crawler
Declaration
public static bool IsAnySearchCrawlerOrSocialBotUserAgent(string userAgent)
Parameters
Type | Name | Description |
---|---|---|
System.String | userAgent |
Returns
Type | Description |
---|---|
System.Boolean |
IsAnySocialNetBotUserAgent(String)
Returns true if the user agent represents a robot from any known social net
Declaration
public static bool IsAnySocialNetBotUserAgent(string userAgent)
Parameters
Type | Name | Description |
---|---|---|
System.String | userAgent |
Returns
Type | Description |
---|---|
System.Boolean |
IsSpecificSocialNetBotUserAgent(SocialNetID, String)
Returns true if the user agent represents a robot from the specified social net
Declaration
public static bool IsSpecificSocialNetBotUserAgent(SocialNetID net, string userAgent)
Parameters
Type | Name | Description |
---|---|---|
SocialNetID | net | |
System.String | userAgent |
Returns
Type | Description |
---|---|
System.Boolean |