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

Parameters

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

Return Value

true if given IP Address is Black Listed in E-Guardo Smart Defender
Remarks

Can be used and type of application. You just need to supply a valid IP Address to add Black List. 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.
Examples

bool IsBlackListed = BlackListIPDirectly(System.Net.IPAddress.Parse("192.168.2.99"));// Black Lists IP Address (192.168.2.99) in E-Guardo Smart Defender
See Also