[FTP3.05] How do I disable upload FTP upload (only) for a site?

Before you do this, you should make absolutely sure that this is what you want to do. If you just want to disable the site, then you should just use the option in the Reseller Control Centre to do so.

First, make sure you have SSH access for the site.

Then, ssh in as the site and make sure you're logged in as the right user.

Then you can type:
cat > .ftpaccess
<Limit WRITE>
DenyAll
</Limit>


...and then hit Ctrl-D to finish writing the file; the effect should be immediate. To re-enable FTP write access, you just need to SSH in and do:


Was this answer helpful?

 Print this Article

Also Read

[FTP3.02] How can I limit an FTP user to a certain directory?

Additional FTP users added through your Control Panel can be restricted to a directory - by...

[FTP2.07] My extra FTP account doesn't seem to work with PHP scripts.

In theory, this should work without issues as all FTP users on a hosting account have the UID,...

[FTP4.08] Is it possible to assign a DNS address to the FTP lock function?

It's not possible to assign a DNS address to have permanent FTP access as the FTP server can't...

[FTP2.02] Why can't I upload large files with FTP?

There are several possible reasons why your images are not showing up on your pages as expected:...

[FTP4.01] What is FTP?

FTP (File Transfer Protocol) is the simplest and most secure way to exchange files over the...