E-Guardo Smart DefenderWebLogger BlockIPDirectly Method (IPAddress)E-Guardo Web Logger API Documentation
Use this method to block specified IPAddress in E-Guardo Smart Defender temporarily. 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(
	IPAddress ActionIP
public static boolean BlockIPDirectly(
	IPAddress ActionIP


Type: OnlineSystem.Net IPAddress
An IP Address which will be bloked in E-Guardo Smart Defender

Return Value

true if given IP Address is blocked in E-Guardo Smart Defender

Can be used and type of application. You just need to supply a valid IP Address to block. For applications which can access HttpContext, you can use overloaded method which takes no input and auto discovers IP Address from current http request. This method is thread safe.

bool IsBlocked = BlockIPDirectly(System.Net.IPAddress.Parse(""));// blocks IP Address ( in E-Guardo Smart Defender
See Also