2.5.2.7. Temporary FTP access to a specific directory

Attention!

It is unsafe to restrict access in this way. If the directory that is accessed via FTP is also available via HTTP, you can upload a script to it via FTP and execute it via HTTP - in this case, the restriction of the FTP root directory will not apply. This feature should only be used as a convenience. Complete isolation can only be achieved by placing the site in a separate hosting account.

Sometimes it may be necessary to provide a third party (for example, a website developer or a third-party specialized specialist) with temporary access not to the entire contents of the hosting account, but only to a specific directory (for example, the directory of a specific site or subdomain, without access to neighboring sites of the hosting account ).

  1. Create new FTP user and specify the path to the desired directory in its advanced settings:
    • For access to directories of the main domain and subdomains specify only the name of the site (for example, example.com).
    • For access only to the directory of the main domain specify the name of the site and a subdirectory separated by a slash www (forexample, example.com/www).
    • For access only to the directory of a specific domain specify the name of the site and the name of the subdomain separated by a slash (for example, example.com/sub).
  2. Credentials for connection provide this FTP user (host, login and password) to the person for whom access was created.
  3. If FTP access restriction is enabled, add the IP of the person to be granted access to list of allowed.

With connection data, a third party will be able to connect via FTP using any FTP client, for example FileZilla, WinSCP or Total Commander.

  1. Delete created user or change his password.
  2. If FTP access restriction is enabled, remove the IP of the person who was granted access from list of allowed... If access restriction is disabled, it is recommended to enable it.
Content