[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

[FTP2.11] I am unable to connect with FTP.

Your FTP account may be locked, for more information, consult the article on FTP locking. All...

[FTP4.06] How do I unlock additional FTP accounts?

Unlocking the main FTP account does not unlock additional FTP accounts, additional accounts must...

[FTP4.05] Why am I getting Error 530. Maximum number of users (3) when trying to connect via FTP?

You will see this error when an attempt is made to exceed the limit of 3 concurrent FTP...

[FTP4.02] Can I upload my files to the server at any time?

Yes. We provide you unlimited FTP access to your account 24 hours a day, 365 days a year,...

[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...