Click or drag to resize
BannedIPInfoProviderCheckIPandRedirect Method
Check if IP address id allowed and if not redirects to the page specified in App settings, key CMSBannedIPRedirectURL.

Namespace: CMS.Protection
Assembly: CMS.Protection (in CMS.Protection.dll) Version: 8.2.23
Syntax
C#
public static bool CheckIPandRedirect(
	string siteName,
	BanControlEnum banType
)

Parameters

siteName
Type: SystemString
Ban settings of this site will be used
banType
Type: CMS.ProtectionBanControlEnum
Which ban type should be checked

Return Value

Type: Boolean
See Also