Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodFTPD
- Methods
- Properties
- Authentication
- BindIP
- BindIPType
- Certificate
- DirFormat
- Encryption
- EncryptionList
- FileLocking
- FIPS
- ForceUTF8
- GoodbyeMessage
- GreetingMessage
- HMacList
- HostKeyList
- KeyExchangeList
- MaxDataPort
- MinDataPort
- MonitorTransfers
- MyHostname
- MyIP
- Notification
- PasvPort
- Port
- Protocol
- Secure
- ServerName
- SFTPVersion
- Status
- StrictDataIP
- Threads
- Timeout
- UseIPv6
- Users
- Version
- VirtualFiles
- VirtualFolders
- Events
- wodFTPDNotify
- FtpUser
- FtpUsers
- VirtualFile
- VirtualFiles
- VirtualFolder
- VirtualFolders
- How to get support?
- Technical information
- Fast notifications interface
- Error list
FtpActions enumeration
FtpActions enumeration is used with events. Some events fire to allow you to restrict certain actions done by the client.
Remarks
In such cases, you would have Action argument provided with the event, where you could set Action = Allow to allow the action, or Action = Deny to deny the action. SilentAlow and SilentDeny are exactly the same as Allow or Deny, except wodFTPServer does not send any response to the client (valid only if FTP and FTPS protocols!), but it leaves this for you to do using User.Send method.Typical sample is Connecting event - when user tries to connect to the server, you can check his IP address and determine if you will allow him to proceed with connecting, or will immediately reject his access. For example, below sample will allow connections only from localhost:
Private Sub FtpD_Connecting(ByVal User As wodFTPDComLib.IFtpUser, Action As wodFTPDComLib.FtpActions)
If User.RemoteIP <> "127.0.0.1" Then Action = Deny
End Sub
Members
Constant | Value | Description |
---|---|---|
Deny | 0 | Deny execution of the action. |
Allow | 1 | Allow to execute action. |
SilentDeny | 2 | Silently deny execution of the action. |
SilentAllow | 3 | Silently allow to execute action. |