{"id":18445,"date":"2026-09-30T08:58:33","date_gmt":"2026-09-30T05:58:33","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/block-ip-cpanel\/"},"modified":"2026-11-23T19:41:06","modified_gmt":"2026-11-23T16:41:06","password":"","slug":"block-ip-cpanel","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/block-ip-cpanel\/","title":{"rendered":"Block an IP Address or a Whole Range from Your Website in cPanel"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>When to use it<\/b>Open <b>IP Blocker<\/b> in the Security section, type the address or range in <b>IP Address or Domain<\/b>, then click <b>Add<\/b>. The block only stops access to the website, not email or FTP, and you remove it from the list at the bottom of the page.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18445-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-ipblocker-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-ipblocker-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-ipblocker-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-ipblocker-en.mp4<\/a><\/video><\/div><\/div>\n<div class=\"hkb-note\"><b>A question we often get:<\/b> &#8220;One address keeps trying to log in to my WordPress dashboard hundreds of times an hour. Can I stop it?&#8221;<\/div>\n<p>Yes, and that is the best use of IP Blocker: a specific address you saw misbehaving in <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/view-website-visitors-cpanel\/\">the Visitors log<\/a>, repeating login requests or probing your files. The tool adds a rule to your <code>.htaccess<\/code> file that stops that address opening any page.<\/p>\n<h2>Blocking an address<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Identify the abusive address<\/b> from Visitors in the Metrics section, or a WordPress security plugin log.<\/li>\n<li><b>Open IP Blocker<\/b> in the Security section of cPanel.<\/li>\n<li><b>Enter the address<\/b> in the IP Address or Domain field.<\/li>\n<li><b>Click Add<\/b> it appears in the list of blocked addresses.<\/li>\n<\/ol>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-pf-en-c-ip.webp\" alt=\"cPanel IP Blocker and the accepted address formats\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<p><\/p>\n<div class=\"hyt-box\" style=\"margin:28px 0;padding:20px 22px 6px;border:1px solid #e3eaf3;border-inline-start:5px solid #f7931e;border-radius:14px;background:#f4f7fb\">\n<p style=\"margin:0 0 10px;font-size:14px;font-weight:700;color:#b35f00\">Free tool from Hyyat Host<\/p>\n<p style=\"margin:0 0 4px;font-weight:800;color:#0b2a55;font-size:17px\">What is my IP?<\/p>\n<p style=\"margin:0 0 12px;color:#3d5373;line-height:1.7\">See your public address, its type, country and reverse name in a second.<\/p>\n<p style=\"margin:0 0 14px\"><a href=\"https:\/\/www.hyyat.com\/en\/%d9%85%d8%a7-%d9%87%d9%88-ip-%d8%a7%d9%84%d8%ae%d8%a7%d8%b5-%d8%a8%d9%8a\/\" style=\"display:inline-block;background:#1557b0;color:#fff;border-radius:999px;padding:8px 22px;font-weight:700;text-decoration:none\">Open the tool<\/a><\/p>\n<\/div>\n<p><\/p>\n<h2>Accepted formats<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Format<\/th>\n<th>Example<\/th>\n<th>What it blocks<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Single address<\/td>\n<td><code>192.168.0.1<\/code><\/td>\n<td>That address only<\/td>\n<\/tr>\n<tr>\n<td>Range<\/td>\n<td><code>192.168.0.1-192.168.0.40<\/code><\/td>\n<td>Every address between the two<\/td>\n<\/tr>\n<tr>\n<td>Implied range<\/td>\n<td><code>192.168.0.1-40<\/code><\/td>\n<td>The same, written shorter<\/td>\n<\/tr>\n<tr>\n<td>CIDR<\/td>\n<td><code>192.168.0.1\/32<\/code><\/td>\n<td>A network sized by the number after the slash<\/td>\n<\/tr>\n<tr>\n<td>Address prefix<\/td>\n<td><code>192.<\/code><\/td>\n<td>Every address starting with it; very broad<\/td>\n<\/tr>\n<tr>\n<td>Domain name<\/td>\n<td><code>example.com<\/code><\/td>\n<td>cPanel resolves it to an IP and blocks that<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"hkb-note warn\"><b>Beware broad blocks:<\/b> a prefix such as <code>5.<\/code> can shut out millions of real visitors, including whole mobile networks. Always start with the narrowest range.<\/div>\n<h2>When blocking helps and when it does not<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Helps<\/th>\n<th>Does not help much<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>A fixed address repeating login attempts<\/td>\n<td>Attacks from thousands of changing addresses<\/td>\n<\/tr>\n<tr>\n<td>A noisy crawler from a known network<\/td>\n<td>Blocking a whole country, whose addresses are many and changing<\/td>\n<\/tr>\n<tr>\n<td>A specific person whose address you know<\/td>\n<td>Protecting email or FTP; this tool covers the website only<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>For wide attacks, a service such as Cloudflare with protection rules and visitor challenges is stronger, together with keeping WordPress and its plugins updated.<\/p>\n<h2>Removing a block<\/h2>\n<p>At the bottom of the page is the Currently-Blocked IP Addresses list. Click Delete next to the address. If you blocked your own address by mistake, connect over mobile data and remove it.<\/p>\n<h2>Did I block it, or did the server block me?<\/h2>\n<p>This tool blocks visitors from your site. If your site and cPanel will not open from your own device, that is the server firewall blocking you after failed logins, covered in <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cannot-access-website-cpanel-ip-blocked\/\">why you cannot open your site and cPanel<\/a>.<\/p>\n<h2>From our support desk<\/h2>\n<ul class=\"hkb-list\">\n<li><b>A customer blocked a whole address prefix<\/b> to stop one nuisance visitor, and orders from an entire mobile network vanished. Replacing it with the single address brought them back.<\/li>\n<li><b>A shop owner blocked his payment gateway<\/b> by mistake because it appeared often in the log, and payment notifications stopped. Always check who owns an address before blocking it.<\/li>\n<li><b>A customer blocked his own office address<\/b> while testing the tool. He opened cPanel over mobile data and removed it from the list.<\/li>\n<\/ul>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Does the block stop the address using email?<\/summary>\n<p>No, the tool only blocks website access.<\/p>\n<\/details>\n<details>\n<summary>Can I block a whole country?<\/summary>\n<p>We do not recommend it with this tool. Use country rules in Cloudflare if needed.<\/p>\n<\/details>\n<details>\n<summary>Where is the block list stored?<\/summary>\n<p>In the .htaccess file in public_html.<\/p>\n<\/details>\n<details>\n<summary>What does a blocked visitor see?<\/summary>\n<p>A 403 error denying access.<\/p>\n<\/details>\n<details>\n<summary>How do I find who owns an IP address?<\/summary>\n<p>Use an online IP WHOIS tool; it shows the company or network that owns it.<\/p>\n<\/details>\n<details>\n<summary>Does blocking clash with Cloudflare?<\/summary>\n<p>If your site is behind Cloudflare, block in the Cloudflare dashboard, because the server sees Cloudflare addresses.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/modsecurity-cpanel\/\">How to Manage ModSecurity in cPanel<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cannot-access-website-cpanel-ip-blocked\/\">Cannot Open Your Website or cPanel from Your Computer? Your IP May Be Blocked<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/view-website-visitors-cpanel\/\">View the Latest Visitors to Your Site in cPanel: Who Came, When and What They Asked For<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-two-factor-authentication\/\">Turn On Two-Factor Authentication in cPanel: Protection Even If Your Password Is Stolen<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-security-section\/\">The Security Section in cPanel: IP Blocker, SSL Certificates, Two-Factor Authentication and Hotlink Protection<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/\">All cPanel guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When to use itOpen IP Blocker in the Security section, type the address or range in IP Address or Domain, then click Add. The block only stops access to the website, not email or FTP, and you remove it from the list at the bottom of the page. A question we often get: &#8220;One address [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":20950,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2749],"doc_tag":[],"class_list":["post-18445","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-website-control-panel-cpanel"],"year_month":"2026-11","word_count":693,"total_views":"4","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"cPanel Guides","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18445"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18445\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/20950"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18445"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18445"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}