E-Guardo Smart DefenderWebLogger BlackListIPDirectly Method E-Guardo Web Logger API Documentation
Use this method to add request's IPAddress to Local Black List in E-Guardo Smart Defender. IPAddress is taken automaticaly from current HttpContext. You must provide valid settings to connect server.Please look at the ServiceAddress, ApplicationName and SecurityKey properties for more information.

Namespace: GuardoWebLogger
Assembly: GuardoWebLogger (in GuardoWebLogger.dll) Version: 1.0.0.7 (1.0.0.7)
Syntax

public static bool BlackListIPDirectly()
public static boolean BlackListIPDirectly()

Return Value

true if current request's IP Address is added Local Black List in E-Guardo Smart Defender
Remarks

MUST be used in and application which can access HttpContext. Typicaly Asp.net applications and Asp.Net web services. For applications which can not access HttpContext, please use overloaded method which takes IP Address as input. Important Notice: Your custom application (WebSite, WebService...) and E-Guardo Smart Defender Must Be Running on Same Computer. Standart edition support only local installations. E-Guardo does not blocks local IP Addresses. Connection IP Addresses must not be local computer IP Address. This method is thread safe.
Examples

bool IsBlackListed = BlackListIPDirectly();// Black Lists current request's IP Address in E-Guardo Smart Defender
See Also