ICIAutobanIPAccessRule Interface

This interface provides the Autoban IP access rule BannedIPs property.

Example (VBScript):

rules = oSite.GetIPAccessRules()

For Each key In rules

If key.type = 0 Then

WScript.echo "AutoBan"

autoban = key.BannedIPs

For Each key2 In autoban

WScript.echo "Address " & CStr(key2.address)

WScript.echo "Banned " & CStr(key2.banned)

WScript.echo "Permanently " & CStr(key2.permanently)

WScript.echo "Expires " & CStr(key2.expires)

WScript.echo "Reason " & CStr(key2.reason)

Next

End if

Next

Properties

read-only

HRESULT BannedIPs(

[out, retval] VARIANT* pvarBannedIPs);

EFT v6.3.0 and later

read-only

HRESULT type(

[out, retval] IPAccessRuleType* pVal);

EFT v6.3.0 and later

Related Topics