[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.05] The images on my website have been corrupted, what went wrong?

This can occur if you are uploading your images using FTP, using the Binary setting rather than...

[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.09] Unable to connect via FTP, the following error is being produced "530 Login failed. Perhaps your FTP access isn't unlocked?"

We have recently implemented an FTP locking system to improve security for all of our customers....

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

[FTP1.01] New "FTP Lock" Security Measure

Over the last year, there has been a substantial increase in the number of sites on the...