How to Deny FTP Access ?


If the /etc/ftpusers file exists on your server, cPanel & WHM denies FTP access to all of the cPanel users in that file.


If the /etc/ftpusers file does not exist on your server, you must create it before you can use it to block FTP access.

The /etc/ftpusers file

The /etc/ftpusers file lists of all of the cPanel users for whom to deny FTP access. To deny FTP access to a user, add the username to the file, with one username per line. For example, an /etc/ftpusers file that blocks access to the user1, user2, and user3 users would appear similar to the following example:

  • Do not include additional information in the usernames (for example, the domain name).
  • To deny FTP access to an FTP user, block the cPanel account that owns that FTP user.
  • Deny FTP, FTP, FTP Client
  • 107 Users Found This Useful
Was this answer helpful?

Related Articles

How to Configure Your SFTP Client ?

Overview This document provides the information to connect to your cPanel account via SFTP (SSH...

How to Edit FTP Server Configuration from the Command Line?

Overview This document explains how to manually edit the FTP server’s configuration from the...

How to Enable FTP Passive Mode ?

Overview This document explains how to use the active or passive mode to connect to a File...

How to Restore Missing FTP Interfaces in cPanel ?

Overview Warning: This document describes an unsupported workaround. We do not guarantee that...

Passive FTP and NAT Configuration Temporary Workaround ?

Overview cPanel & WHM’s implementation of PureFTP and ProFTPd causes an issue on...