Knowledge Base

How to configure leech protection in cPanel

This article describes how to use cPanel's Leech Protect feature to help prevent users from publicly posting their username and password.

What is leech protection?

When users publicly post their username and password, unauthorized visitors can use their credentials to access secure areas of your web site. This practice is known as leeching.

cPanel provides protection against leeching by limiting the number of times that a user can access a secure area of your web site within a two-hour period. For example, you can limit users to four logins over a two-hour period. If users exceed the login limit, you can redirect them to another URL, send an alert e-mail, or even disable their account.

Enabling leech protection for a directory

To enable leech protection for a directory, follow these steps:

  1. In the Security section of the cPanel home screen, click Leech Protect.
  2. Click the name of the directory that you want to protect.
    You can click the folder icon next to the folder name to open the folder.
  3. Under Set up Leech Protection, type the number of logins allowed per username in a two-hour period.
  4. Type a URL to redirect users to another web page when their account is compromised.
  5. To receive an e-mail alert when an account is compromised, select the Send Email Alert to check box, and then type an e-mail address.
  6. To disable accounts that are compromised, select the Disable Compromised Accounts check box.
  7. Click Enable.

Disabling leech protection for a directory

To disable leech protection for a directory, follow these steps:

  1. In the Security section of the cPanel home screen, click Leech Protect.
  2. Click the name of the directory for which you want to disable leech protection. Directories that have leech protection currently enabled have a small image of a leech next to them.
    You can click the folder icon next to the folder name to open the folder.
  3. Under Disable Protection, click Disable.

More Information