Skip to content

Configuring leech protection in cPanel

Leech Protection is a security feature in cPanel that prevents users from publicly sharing their login credentials for restricted areas of your website. If too many logins occur from the same account within a short period, cPanel automatically redirects or suspends the account to protect your site.

  • Stops users from sharing passwords for protected directories.
  • Prevents unauthorized access to restricted content.
  • Helps secure membership sites, private areas, or paid content.
  1. Log in to cPanel.

  2. On the Tools page → Security section, click Leech Protection.

  3. Select the protected directory you want to secure.

  4. Configure the following options:

    • Number of logins per user per 2 hours → Set a threshold (e.g., 3 logins).
    • Redirect URL → Enter the page users will be redirected to if they exceed the limit (e.g., a warning page).
    • Send Email Alert To → Enter an email address to receive notifications when leech protection is triggered.
    • Disable Compromised Accounts → Check this box to automatically suspend accounts that exceed the login limit.
  5. Click Enable to activate leech protection for the directory.