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

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

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

[FTP2.09] Am I able to unlock multiple IP addresses for usage with FTP?

Yes, just insert them into a comma delimited list(e.g. 123.456.789.654,132.456.789.357).