|
This online help file is for EFT Server version 6.2.x. For other versions of EFT Server, please refer to http://help.globalscape.com/help/index.html. (If the Index and Contents are hidden, click Show Contents pane in the top left corner of this topic.) |
Use the ICIClientSettings interface AddIPAccessRule method to add the allowed or denied IP mask from which the client is allowed to connect. Refer to User IP Access Ban List for an illustration of how this and other Client Settings Interface Methods and Properties can be accessed in the Administrator interface.
|
This method is available in EFT Server 5.1.1 and later. |
Signature:
In EFT Server versions 5.1.1 to 6.0.x:
HRESULT AddIPAcessRule([in] long val);
In EFT Server v6.1 and later:
HRESULT AddIPAcessRule(bstrMask As String, bAllow As Boolean);
For example, the following VBScript code assigns only the 1.1.1.1 IP address to a client (in EFT Server v6.1 and later):
client.SetLimitAccessByIP True ‘turn Limit Access by IP on
client.IPAccessAllowedDefault = False ‘forbid all IPs except for...
For Each mask In client.GetAllowedMasks ‘Remove old ‘Allowed’ IPs
client.RemoveIPAccessRule mask, True
Next
client.AddIPAccessRule "1.1.1.1", True ‘Assign ‘Allowed ’IP