[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.03] How do I setup additional FTP accounts?

Additional FTP accounts are most commonly used to give others access to an account for the...

[FTP2.01] I've uploaded my site on my hosting account but cannot see it?

As a first step, check the following points:- Is your domain on the correct name servers? To...

[FTP4.07] Can I connect to your FTP servers using command line FTP in Windows?

Yes, we have no restrictions regarding the use of the windows command line to connect to our...

[FTP2.08] I've uploaded files to File manager but cannot see them, they were recently visible. What's happened?

File manager has a 5mb memory limit which restricts the number of files that can be displayed if...