FTP protection, using the .ftpaccess file. Print

  • 0

This allows you to change settings using .ftpaccess files. Directives specified in the .ftpaccess file only affect the directory in which it is located and all its subdirectories.

To allow FTP access only from certain IPs, place a .ftpaccess file with the contents in the root of your account:

<Limit ALL>
Allow from xx.xx.xx.xx
Allow from 116.254.22.43
Deny from all
</Limit>

Where xx.xx.xx.xx is the IP address from which FTP access to the account is allowed.
116.254.22.43 IP address of the FTPAdmin service, if you need it, leave a note.

If you still cannot get a dedicated address and have dynamic addresses, then you can, for example, allow access to the entire network of your provider, for example it will look like this:

<Limit ALL>
Allow 116.254.22.0/26
Deny from all
</Limit>


Was this answer helpful?

« Back