[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.10] I can login to FTP via my client, but I can't see a directory listing of my site files?

If your FTP client appears to log in correctly but no files or directories are listed, it's...

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

FTP uploads are limited to 200MB per file. (NOTE that this is as of 06 Dec 2010. By the time you...

[FTP3.01] How do I connect via Dreamweaver?

To connect to the your website using Macromedia Dream Weaver UD4 or MX we recommend trying the...

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

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

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

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