E-Guardo Smart DefenderWebLogger BlockIPDirectly Method E-Guardo Web Logger API Documentation
Use this method to block request IPAddress in E-Guardo Smart Defender temporarily. 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: (

public static bool BlockIPDirectly()
public static boolean BlockIPDirectly()

Return Value

true if current request's IP Address is blocked in E-Guardo Smart Defender

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.

bool IsBlocked = BlockIPDirectly();// blocks current request's IP Address in E-Guardo Smart Defender
See Also