{"id":205,"date":"2026-06-01T23:15:00","date_gmt":"2026-06-02T06:15:00","guid":{"rendered":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/"},"modified":"2026-06-01T23:15:00","modified_gmt":"2026-06-02T06:15:00","slug":"how-to-block-ip-address-cpanel","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/","title":{"rendered":"How to Block an IP Address in cPanel Using the IP Blocker"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>The cPanel IP Blocker is a built-in security tool that lets you deny access to your website from specific IP addresses or IP ranges. It works by writing rules into your site&#8217;s <code class=\"\" data-line=\"\">.htaccess<\/code> file, which Apache reads before serving any content. No firewall configuration, no root access \u2014 just a form in your cPanel dashboard.<\/p>\n<p>You&#8217;ll typically reach for this tool when you spot suspicious activity in your access logs: a single IP hammering your login page, a known spammer, or a bot that&#8217;s burning through your bandwidth. It&#8217;s also useful for quickly cutting off an abusive user while you work on a longer-term fix.<\/p>\n<p>This guide covers the full process \u2014 from finding the tool to blocking ranges and verifying the block is actually working. If you&#8217;re on one of our <a href=\"https:\/\/www.hostandtech.com\/shared-hosting\/\">Shared Hosting<\/a> plans, this is likely the primary IP-blocking method available to you since you won&#8217;t have direct server firewall access.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Active cPanel account (cPanel version 98 or later \u2014 the UI referenced here matches the Paper Lantern and Jupiter themes)<\/li>\n<li>The IP address or range you want to block \u2014 check your <strong>Raw Access Logs<\/strong> or <strong>Awstats<\/strong> inside cPanel if you&#8217;re not sure what to block<\/li>\n<li>Basic understanding that blocking an IP affects all websites under your cPanel account unless you target a specific directory<\/li>\n<\/ul>\n<h2>Step-by-Step: Block an IP Address in cPanel<\/h2>\n<h3>Step 1 \u2014 Log in to cPanel<\/h3>\n<p>Navigate to your cPanel login URL. This is usually one of the following:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-1\"><code class=\"\" data-line=\"\">https:\/\/yourdomain.com:2083\nhttps:\/\/yourserverip:2083<\/code><\/pre>\n<\/div>\n<p>Enter your cPanel username and password. If you&#8217;re not sure of the URL, check the welcome email from Host &amp; Tech or contact support.<\/p>\n<h3>Step 2 \u2014 Open the IP Blocker<\/h3>\n<p>In the cPanel dashboard, scroll to the <strong>Security<\/strong> section and click <strong>IP Blocker<\/strong>. In the Jupiter theme, you can also just type &#8220;IP Blocker&#8221; into the search bar at the top \u2014 it&#8217;s faster.<\/p>\n<h3>Step 3 \u2014 Enter the IP Address or Range to Block<\/h3>\n<p>You&#8217;ll see a text field labelled <strong>Add an IP or Range<\/strong>. cPanel accepts several formats here. Use whichever matches what you&#8217;re trying to block:<\/p>\n<table style=\"width:100%;border-collapse: collapse;margin-bottom: 1em\">\n<thead>\n<tr style=\"background:#f2f2f2\">\n<th style=\"padding:8px;border:1px solid #ddd;text-align:left\">Format<\/th>\n<th style=\"padding:8px;border:1px solid #ddd;text-align:left\">Example<\/th>\n<th style=\"padding:8px;border:1px solid #ddd;text-align:left\">What it blocks<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:8px;border:1px solid #ddd\">Single IP<\/td>\n<td style=\"padding:8px;border:1px solid #ddd\"><code class=\"\" data-line=\"\">203.0.113.45<\/code><\/td>\n<td style=\"padding:8px;border:1px solid #ddd\">That one address only<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px;border:1px solid #ddd\">CIDR range<\/td>\n<td style=\"padding:8px;border:1px solid #ddd\"><code class=\"\" data-line=\"\">203.0.113.0\/24<\/code><\/td>\n<td style=\"padding:8px;border:1px solid #ddd\">All 256 IPs in that subnet<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px;border:1px solid #ddd\">Implied range<\/td>\n<td style=\"padding:8px;border:1px solid #ddd\"><code class=\"\" data-line=\"\">203.0.113.<\/code><\/td>\n<td style=\"padding:8px;border:1px solid #ddd\">All IPs starting with 203.0.113<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px;border:1px solid #ddd\">IP range with dash<\/td>\n<td style=\"padding:8px;border:1px solid #ddd\"><code class=\"\" data-line=\"\">203.0.113.1-203.0.113.50<\/code><\/td>\n<td style=\"padding:8px;border:1px solid #ddd\">That specific range<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\ud83d\udcdd <strong>Note:<\/strong> cPanel&#8217;s IP Blocker doesn&#8217;t support IPv6 blocking through the UI as of cPanel version 110. If you need to block an IPv6 address, you&#8217;ll have to edit <code class=\"\" data-line=\"\">.htaccess<\/code> manually (covered below).<\/p>\n<h3>Step 4 \u2014 Click Add<\/h3>\n<p>Click the <strong>Add<\/strong> button. cPanel writes the block directly to your <code class=\"\" data-line=\"\">.htaccess<\/code> file at the root of your public directory. The change takes effect immediately \u2014 there&#8217;s no propagation delay.<\/p>\n<p>You&#8217;ll see a confirmation screen listing the IP and the domain it&#8217;s been blocked from.<\/p>\n<h3>Step 5 \u2014 Verify the Block is Working<\/h3>\n<p>Don&#8217;t just trust the confirmation screen. Open your <code class=\"\" data-line=\"\">.htaccess<\/code> file via <strong>File Manager<\/strong> and confirm the rules were written correctly. Navigate to <code class=\"\" data-line=\"\">public_html\/.htaccess<\/code> and look for something like this:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-2\"><code class=\"\" data-line=\"\"># BEGIN cPanel-generated handler, do not edit\n# End of cPanel-generated handler\n\nOrder Deny,Allow\nDeny from 203.0.113.45\nDeny from 203.0.113.0\/24<\/code><\/pre>\n<\/div>\n<p>If you want to test the block externally, use a proxy or a tool like <a href=\"https:\/\/reqbin.com\" target=\"_blank\" rel=\"noopener noreferrer\">ReqBin<\/a> to make a request from the blocked IP range and confirm you get a <strong>403 Forbidden<\/strong> response.<\/p>\n<h3>Step 6 (Optional) \u2014 Block an IPv6 Address via .htaccess<\/h3>\n<p>If you&#8217;re seeing attacks from an IPv6 address and the cPanel UI won&#8217;t accept it, add the rule manually. Open <code class=\"\" data-line=\"\">public_html\/.htaccess<\/code> in File Manager, click <strong>Edit<\/strong>, and add:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-3\"><code class=\"\" data-line=\"\">Require all granted\nRequire not ip 2001:db8::\/32<\/code><\/pre>\n<\/div>\n<p>\u26a0 <strong>Warning:<\/strong> If your server is running Apache 2.4 (which is standard on cPanel servers running AlmaLinux 8\/9), use the <code class=\"\" data-line=\"\">Require<\/code> directive syntax above. The older <code class=\"\" data-line=\"\">Order\/Deny<\/code> syntax still works in compatibility mode, but mixing the two in the same <code class=\"\" data-line=\"\">.htaccess<\/code> file can cause a 500 error. Check your Apache version if you&#8217;re unsure:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-4\"><code class=\"\" data-line=\"\">httpd -v<\/code><\/pre>\n<\/div>\n<h3>Step 7 \u2014 Removing a Block<\/h3>\n<p>Go back to <strong>IP Blocker<\/strong> in cPanel. At the bottom of the page, you&#8217;ll see a table of currently blocked IPs. Click <strong>Delete<\/strong> next to the entry you want to remove. cPanel removes the corresponding <code class=\"\" data-line=\"\">Deny from<\/code> line from <code class=\"\" data-line=\"\">.htaccess<\/code> automatically.<\/p>\n<h2>Common Issues &amp; Troubleshooting<\/h2>\n<h3>The blocked IP can still access the site<\/h3>\n<p><strong>Cause:<\/strong> The attacker is using a CDN, proxy, or VPN, so the IP hitting your server is different from what you see in your logs. Alternatively, if your site sits behind Cloudflare, the IP in your logs is Cloudflare&#8217;s edge IP, not the real visitor&#8217;s IP.<\/p>\n<p><strong>Fix:<\/strong> Check whether Cloudflare or another proxy is in front of your site. If so, use Cloudflare&#8217;s firewall rules to block the IP at the edge. For Cloudflare-proxied sites, blocking in cPanel is largely ineffective for this reason \u2014 cPanel only sees Cloudflare&#8217;s IP.<\/p>\n<h3>500 Internal Server Error after adding the block<\/h3>\n<p><strong>Cause:<\/strong> A syntax error was introduced in <code class=\"\" data-line=\"\">.htaccess<\/code>, or you mixed Apache 2.2-style <code class=\"\" data-line=\"\">Order\/Deny<\/code> directives with Apache 2.4-style <code class=\"\" data-line=\"\">Require<\/code> directives.<\/p>\n<p><strong>Fix:<\/strong> Open <code class=\"\" data-line=\"\">public_html\/.htaccess<\/code> in File Manager and look for the lines cPanel added. Remove any duplicate or conflicting directives. You can also check Apache&#8217;s error log for the exact line causing the problem:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-5\"><code class=\"\" data-line=\"\">tail -n 50 \/usr\/local\/apache\/logs\/error_log<\/code><\/pre>\n<\/div>\n<h3>IP Blocker shows &#8220;You cannot block your own IP&#8221;<\/h3>\n<p><strong>Cause:<\/strong> You&#8217;re trying to block the IP address you&#8217;re currently using to access cPanel. cPanel prevents this to stop you from locking yourself out.<\/p>\n<p><strong>Fix:<\/strong> This is a valid safety check. If you genuinely need to block that IP range, edit <code class=\"\" data-line=\"\">.htaccess<\/code> directly via File Manager or SSH. I&#8217;d recommend double-checking whether you actually need to block it \u2014 if it&#8217;s your own office IP, you probably got the wrong address from your logs.<\/p>\n<h3>The block disappeared after a cPanel update or rebuild<\/h3>\n<p><strong>Cause:<\/strong> Some cPanel operations (particularly restoring a backup or running a cPanel account rebuild) can overwrite <code class=\"\" data-line=\"\">.htaccess<\/code> and remove manually added entries. Entries added through the IP Blocker UI are usually preserved, but manual edits to <code class=\"\" data-line=\"\">.htaccess<\/code> are not always.<\/p>\n<p><strong>Fix:<\/strong> Re-add the blocks through the IP Blocker UI rather than directly editing <code class=\"\" data-line=\"\">.htaccess<\/code>. cPanel tracks UI-added blocks separately and can restore them more reliably.<\/p>\n<h3>You need to block an entire country, not just a single IP<\/h3>\n<p><strong>Cause:<\/strong> The built-in IP Blocker isn&#8217;t designed for country-level geo-blocking \u2014 you&#8217;d need to add thousands of IP ranges manually.<\/p>\n<p><strong>Fix:<\/strong> Use a geo-blocking solution instead. Cloudflare&#8217;s free plan includes country-level firewall rules. If you&#8217;re on a VPS or dedicated server, <code class=\"\" data-line=\"\">mod_geoip<\/code> or <code class=\"\" data-line=\"\">GeoIP2<\/code> with Apache, or <code class=\"\" data-line=\"\">fail2ban<\/code> with a GeoIP plugin, are the right tools. The cPanel IP Blocker alone won&#8217;t scale to this.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"ht-faq-section\">\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Does blocking an IP in cPanel affect all websites on my account?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Yes \u2014 by default, the block is written to the .htaccess file in your main public_html directory, which covers all domains and subdomains rooted there. If you only want to block an IP from one addon domain or subdirectory, manually add the Deny from rule to the .htaccess file inside that specific folder instead of using the IP Blocker UI.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">How many IP addresses can I block in cPanel?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>cPanel doesn&#8217;t publish a hard limit, but practically speaking, adding hundreds of individual IP entries to .htaccess will slow down Apache because it checks those rules on every single request. If you&#8217;re blocking more than 50-100 individual IPs, I&#8217;d recommend switching to CIDR ranges where possible, or moving to a server-level firewall solution like CSF (ConfigServer Security &amp; Firewall) if you have VPS or dedicated server access.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Will blocking an IP in cPanel block them from email too?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>No. The cPanel IP Blocker only affects HTTP\/HTTPS traffic to your website through Apache. It has no effect on mail traffic (SMTP, IMAP, POP3). If you&#8217;re getting spam or brute-force attacks on your mail server, that needs to be handled at the mail server level \u2014 typically through cPanel&#8217;s Email Deliverability tools or a server-level firewall.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Can I block an IP temporarily and have it automatically removed?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Not through the cPanel UI \u2014 blocks added with the IP Blocker are permanent until you manually delete them. If you need time-based blocking, you&#8217;d have to set up a cron job to remove the .htaccess entry after a set period, or use a tool like fail2ban on a VPS or dedicated server that supports timed bans natively.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">My site is on Cloudflare \u2014 should I still use the cPanel IP Blocker?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Probably not for blocking external attackers. When Cloudflare is proxying your traffic, your server only sees Cloudflare&#8217;s IP addresses, not the original visitor&#8217;s IP. Blocking at the cPanel level won&#8217;t stop the attacker \u2014 block them in the Cloudflare dashboard under Security &gt; WAF instead. The cPanel IP Blocker is still useful for blocking direct-to-origin requests if your origin IP has been exposed.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Getting hammered by a suspicious IP or bot traffic? The cPanel IP Blocker lets you cut off access to your site in under a minute \u2014 no server-level access required. Here&#8217;s exactly how to use it, and where it falls short.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[519,40,522,518,263,523,521,520],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-block-ip-address-cpanel","tag-cpanel","tag-cpanel-firewall","tag-cpanel-ip-blocker","tag-cpanel-security","tag-how-to-block-an-ip-address-in-cpanel-using-the-ip-blocker","tag-ip-blocking","tag-shared-hosting-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Block an IP Address in cPanel Using the IP Blocker<\/title>\n<meta name=\"description\" content=\"Learn how to use the cPanel IP Blocker to block individual IPs, ranges, and countries. Step-by-step guide with troubleshooting tips for shared hosting users.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Block an IP Address in cPanel Using the IP Blocker\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the cPanel IP Blocker to block individual IPs, ranges, and countries. Step-by-step guide with troubleshooting tips for shared hosting users.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Host And Tech knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-02T06:15:00+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\"},\"headline\":\"How to Block an IP Address in cPanel Using the IP Blocker\",\"datePublished\":\"2026-06-02T06:15:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/\"},\"wordCount\":1449,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"keywords\":[\"block IP address cPanel\",\"cPanel\",\"cPanel firewall\",\"cPanel IP blocker\",\"cPanel security\",\"How to Block an IP Address in cPanel Using the IP Blocker\",\"IP blocking\",\"shared hosting security\"],\"articleSection\":[\"cPanel Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/\",\"name\":\"How to Block an IP Address in cPanel Using the IP Blocker\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\"},\"datePublished\":\"2026-06-02T06:15:00+00:00\",\"description\":\"Learn how to use the cPanel IP Blocker to block individual IPs, ranges, and countries. Step-by-step guide with troubleshooting tips for shared hosting users.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-block-ip-address-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Block an IP Address in cPanel Using the IP Blocker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"name\":\"Host And Tech knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\",\"name\":\"Host And Tech knowledge base\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"contentUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"width\":1134,\"height\":395,\"caption\":\"Host And Tech knowledge base\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/stshostandtech\",\"https:\\\/\\\/x.com\\\/stshostandtech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/hostandtech.com\\\/kb\"],\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/author\\\/admin_fjj7qydm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Block an IP Address in cPanel Using the IP Blocker","description":"Learn how to use the cPanel IP Blocker to block individual IPs, ranges, and countries. Step-by-step guide with troubleshooting tips for shared hosting users.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Block an IP Address in cPanel Using the IP Blocker","og_description":"Learn how to use the cPanel IP Blocker to block individual IPs, ranges, and countries. Step-by-step guide with troubleshooting tips for shared hosting users.","og_url":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/","og_site_name":"Host And Tech knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2026-06-02T06:15:00+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/"},"author":{"name":"admin","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee"},"headline":"How to Block an IP Address in cPanel Using the IP Blocker","datePublished":"2026-06-02T06:15:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/"},"wordCount":1449,"commentCount":0,"publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"keywords":["block IP address cPanel","cPanel","cPanel firewall","cPanel IP blocker","cPanel security","How to Block an IP Address in cPanel Using the IP Blocker","IP blocking","shared hosting security"],"articleSection":["cPanel Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/","url":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/","name":"How to Block an IP Address in cPanel Using the IP Blocker","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/#website"},"datePublished":"2026-06-02T06:15:00+00:00","description":"Learn how to use the cPanel IP Blocker to block individual IPs, ranges, and countries. Step-by-step guide with troubleshooting tips for shared hosting users.","breadcrumb":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-block-ip-address-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Block an IP Address in cPanel Using the IP Blocker"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/kb\/#website","url":"https:\/\/hostandtech.com\/kb\/","name":"Host And Tech knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/kb\/#organization","name":"Host And Tech knowledge base","url":"https:\/\/hostandtech.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","contentUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","width":1134,"height":395,"caption":"Host And Tech knowledge base"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/hostandtech.com\/kb"],"url":"https:\/\/hostandtech.com\/kb\/author\/admin_fjj7qydm\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":0,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}