ICIManualIPAccessRule Interface

The ICIManualIPAccessRule interface represents an IP address access rule that was added manually.

Example (VBScript):

rules = oServer.GetIPAccessRules()

For Each key In rules

If key.type = 0 Then

WScript.echo "AutoBan"

End if

If key.type = 1 Then

WScript.echo "Manual " + key.address

WScript.echo "Added " + key.added

WScript.echo "Allow " + key.allow

End if

Next

 

Members

How it's used

Applicable Version

Property Allow As Boolean

(read-only)

Retrieve whether the IP rule is a permission or ban.

HRESULT Allow(

[out, retval] VARIANT_BOOL* pbAllow);

EFT Server v6.3.0 and later

Property Address As String

(read-only)

Retrieve the IP address.

HRESULT Address(

[out, retval] BSTR* pbzAddress);

EFT Server v6.3.0 and later

Property Added As Date

(read-only)

Retrieve the date when rule was added.

HRESULT Added(

[out, retval] DATE* pdAdded);

EFT Server v6.3.0 and later

Property type As IPAccessRuleType (read-only)

Retrieve the type of the rule.

HRESULT type(

[out, retval] IPAccessRuleType* pVal);

EFT Server v6.3.0 and later

Related Topics