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: 

rm .ftpaccess

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I connect via Dreamweaver?

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

How do I connect via FTP from Mac OS X?

The Finder in more recent versions of Mac OS X has built-in support for FTP. All you need to do...

How do I publish my site with Adobe GoLive?

When you're ready to publish your site, just connect to the FTP server by clicking the FTP Server...

How do I set permissions on files and scripts?

Doing a CHMOD (changing a file's permissions) is the setting of access privileges for a file....

How can I limit an FTP user to a certain directory?

Additional FTP users added through the Planet Hippo Control Panel can be restricted to a...