ICIBannedIP Interface

The ICIBannedIP interface represents an entry in an IP address autoban list.

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

Members

  • Property Address As String

  • (read-only)

    Retrieves a string of banned IP addresses

    HRESULT Address([out, retval] BSTR* pbzAddress);

    EFT v6.3.0 and later

  • Property Banned As Date

  • (read-only)

    Retrieves the date an IP address was added to the ban list.

    HRESULT Banned([out, retval] DATE* pdBanned);

    EFT v6.3.0 and later

  • Property Expires As Date

  • (read-only)

    Retrieves the date the ban expires.

    HRESULT Expires([out, retval] DATE* pdExpires);

    EFT v6.3.0 and later

  • Property Permanently As Boolean

  • (read-only)

    Retrieves whether the ban is permanent (True or False).

    HRESULT Permanently([out, retval] VARIANT_BOOL* pbPermanently);

    EFT v6.3.0 and later

  • Property Reason As String

  • (read-only)

    Retrieves the reason the IP address was banned.

    HRESULT Reason([out, retval] BSTR* pbzReason);

    EFT v6.3.0 and later

Related Topics