Knowledge Base
MilesWeb / How-Tos

Learn what Leech Protection is and how to enable and disable it via cPanel?

Approx. read time : 3 min

This Knowledgebase article describes how to use the Leech Protection via cPanel to 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 a website. This practice is known as Leech protection.

cPanel offers protection against leeches, by limiting the number of times a user can access an area of a website within two hours. For example, you can limit four logins to a user over a period of two hours. If a user exceeds the limit for login, he will be redirected to another URL, and gets an alert by e-mail, or even the account id deactivated.

Leech protection activation for a directory

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

  1. In the Security section of the main screen of cPanel, click leech protection.
  2. Click the name of the directory you want to protect.
  3. Type the number of entries allowed to a user within a period of two hours.
  4. Enter an address URL to redirect users to another website when the account is compromised.
  5. To receive an email notification when an account is compromised, select the Send email alert to the checkbox option, and then, type an email address.
  6. To disable accounts that are committed, select disable compromised accounts check box.
  7. Click Enable.

Disable leech protection for a directory

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

  1. In the Security section of the main screen of cPanel, click leech protect
  2. Click on the name of the directory for which you want to disable the leech protection directories that have leech protection currently enabled that have a small picture of a leech next to them.
  3. To turn down protection, click Disable.
Pravin is Journalist Specializing in Blogging, Social Networking and Community Management. As a constant learner, he is always aiming towards new ideas and greater knowledge. When he is not doing research, reading, or writing for blogs, you can find him hanging around social media sites.
Need help? We’re always here for you.