{"id":1145,"date":"2025-07-12T12:34:00","date_gmt":"2025-07-12T11:34:00","guid":{"rendered":"https:\/\/www.4uhosting.co.uk\/articles\/knowledgebase\/use-leech-protection\/"},"modified":"2026-08-19T14:01:06","modified_gmt":"2026-08-19T13:01:06","slug":"use-leech-protection","status":"publish","type":"kb_article","link":"https:\/\/www.4uhosting.co.uk\/articles\/knowledgebase\/use-leech-protection\/","title":{"rendered":"How to Use Leech Protection in cPanel"},"content":{"rendered":"<figure class=\"wp-block-image\" style=\"margin:1.35rem 0 1.75rem;\"><a href=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/01-leech-protection-main.png\"><img decoding=\"async\" src=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/01-leech-protection-main.png\" alt=\"Leech Protection screen in cPanel\" style=\"display:block;max-width:100%;height:auto;\" \/><\/a><\/figure>\n<h2>Select a Directory<\/h2>\n<ol>\n<li>Go to <strong>Security &gt; Leech Protection<\/strong>.<\/li>\n<li value=\"2\">Browse to the directory you want to protect.<\/li>\n<\/ol>\n<figure class=\"wp-block-image\" style=\"margin:1.35rem 0 1.75rem;\"><a href=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/02-leech-directory-selection.png\"><img decoding=\"async\" src=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/02-leech-directory-selection.png\" alt=\"Leech Protection directory selection\" style=\"display:block;max-width:100%;height:auto;\" \/><\/a><\/figure>\n<ol start=\"3\">\n<li value=\"3\">Click the folder name to open subfolders.<\/li>\n<li value=\"4\">Click <strong>Edit<\/strong> or the folder itself to configure protection.<\/li>\n<\/ol>\n<h2>Enable Leech Protection<\/h2>\n<ol>\n<li>Set the maximum number of logins allowed within a two-hour period.<\/li>\n<li value=\"2\">Enter a redirect URL for users who exceed the limit.<\/li>\n<li value=\"3\">Enter an email address if you want cPanel to send an alert.<\/li>\n<li value=\"4\">Tick <strong>Disable Compromised Accounts<\/strong> if cPanel should disable accounts that exceed the limit.<\/li>\n<li value=\"5\">Click <strong>Enable<\/strong>.<\/li>\n<\/ol>\n<h2>Disable Leech Protection<\/h2>\n<ol>\n<li>Go to <strong>Security &gt; Leech Protection<\/strong>.<\/li>\n<li value=\"2\">Open the protected directory.<\/li>\n<li value=\"3\">Click <strong>Disable<\/strong>.<\/li>\n<\/ol>\n<h2>Notes<\/h2>\n<ul>\n<li>Leech Protection works with password-protected directories.<\/li>\n<li>Use Directory Privacy first if the folder is not already password protected.<\/li>\n<li>Keep the login limit realistic so genuine users are not blocked by mistake.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Select a Directory Go to Security &gt; Leech Protection. Browse to the directory you want to protect. Click the folder name to open subfolders.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","kb_category":[21],"class_list":["post-1145","kb_article","type-kb_article","status-publish","hentry","kb_category-cpanel-security"],"_links":{"self":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article"}],"about":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/types\/kb_article"}],"author":[{"embeddable":true,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1145\/revisions"}],"predecessor-version":[{"id":1290,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1145\/revisions\/1290"}],"wp:attachment":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/media?parent=1145"}],"wp:term":[{"taxonomy":"kb_category","embeddable":true,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_category?post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}