How do I disable FTP uploading to a customer’s site?


If you want to stop a customer from uploading to their website, you can disable FTP uploading.  However, you need to make certain this is exactly what you want to do.

If you just want to disable their site, you can do so through the Reseller Control Centre.

You will need SSH access to that particular site. If you do not have SSH access, please raise a Support Ticket with the Customer Services team to gain access.

To disable FTP uploading:

  1. SSH into the site making sure you are logged in as the right user
  2. Enter in this line:

cat > .ftpaccess

  1. Enter in this line:

DenyAll

  1. Press Ctrl-D to finish writing the file
  2. FTP access will now be blocked

To re-enable FTP access:

  1. SSH into the site making sure you are logged in as the right user
  2. Enter in this line:

rm .ftpaccess

  1. FTP access will be restored


Article ID: 295
Created On: Fri, Mar 13, 2015 at 3:30 PM
Last Updated On: Wed, Aug 18, 2021 at 11:12 AM

Online URL: https://www.heartinternet.uk/support/article/how-do-i-disable-ftp-uploading-to-a-customer-s-site.html