[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.03] I'm trying to upload a large file onto my webspace, and the file manager inside the Control Panel won't let me. Why?

This is due to the nature of the web based FTP used, and your browser/ISP connection timing out...

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

[FTP1.02] Gumblar or Troj/JSRedir-R FTP Virus

Known as Gumblar by ScanSafe and Troj/JSRedir-R by Sophos, this computer virus first...

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