Click or drag to resize
BannedIPInfoProviderIsAllowed Method (String, BanControlEnum)
Returns true if client IP address (from HttpContext) is allowed to access the site, false if it is banned.

Namespace: CMS.Protection
Assembly: CMS.Protection (in CMS.Protection.dll) Version: 11.0.0
Syntax
C#
public static bool IsAllowed(
	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