{"id":21302,"date":"2025-11-13T10:23:05","date_gmt":"2025-11-13T10:23:05","guid":{"rendered":"https:\/\/www.webhosting.uk.com\/kb\/?p=21302"},"modified":"2026-03-03T11:28:18","modified_gmt":"2026-03-03T11:28:18","slug":"how-to-block-an-ip-address-using-csf-firewall-in-whm","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/","title":{"rendered":"How to Block an IP Address Using CSF Firewall in WHM"},"content":{"rendered":"<p>This guide explains how to block an IP address using CSF Firewall in WHM, helping improve server security and reduce malicious traffic. The steps are simple and suitable for both beginners and experienced server administrators.<\/p>\n<div class=\"more-tab-content\">\n<h2><strong>Table of Contents<\/strong><\/h2>\n<ol>\n<li><a href=\"#firewall\">What is CSF (ConfigServer Security &amp; Firewall)?<\/a><\/li>\n<li><a href=\"#address\">Why Block an IP Address?<\/a><\/li>\n<li><a href=\"#block\">How to Block an IP Address Using CSF in WHM?<\/a><\/li>\n<li><a href=\"#unblock\">How to Unblock an IP Address in CSF?<\/a><a name=\"firewall\"><\/a><\/li>\n<li><a href=\"#practices\">Tips &amp; Best Practices<\/a><\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ol>\n<\/div>\n<h3><strong>What is CSF (ConfigServer Security &amp; Firewall)?<\/strong><\/h3>\n<p>CSF is a popular, advanced firewall plugin for Linux servers. It integrates with cPanel\/WHM and provides features such as:<\/p>\n<ul>\n<li>IP blocking\/allowing<\/li>\n<li>Login <a name=\"address\"><\/a>failure tracking via LFD<\/li>\n<li>Port management<\/li>\n<li>Firewall hardening<\/li>\n<\/ul>\n<p>Its WHM interface makes security management easy without needing command-line access.<\/p>\n<h3><strong>Why Block an IP Address?<\/strong><\/h3>\n<p>Blocking an IP address is an important security measure when you notice suspicious or harmful activity on your server. You may want to block an IP in situations such as:<\/p>\n<ul>\n<li>Brute-force login attempts: When an IP repeatedly fails to log in to WHM, cPanel, or SSH, it indicates a possible hacking attempt.<\/li>\n<li>Malicious bot traffic: When automated scripts or bots send excessive or harmful requests to your websites.<\/li>\n<li>Spam-related activity: When an IP is detected sending spam emails or abusing mail services.<\/li>\n<li>DDoS-like behaviour: When an IP generates unusually high or abnormal <a name=\"block\"><\/a>traffic that impacts server performance.<\/li>\n<li>Unauthorised access attempts: Any activity in server logs that indicates potential intrusion attempts.<\/li>\n<\/ul>\n<h3><strong>How to Block an IP Address Using CSF in WHM?<\/strong><\/h3>\n<ol>\n<li>Log in to WHM.<\/li>\n<li>Navigate to CSF:\n<ol>\n<li>In the left WHM menu, search for \u201cConfigServer Security &amp; Firewall\u201d.<\/li>\n<li>Click ConfigServer Security &amp; Firewall.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png\"><img decoding=\"async\" class=\"alignnone wp-image-21303 size-full\" style=\"border: 1px solid #ccc; border-radius: 6px; padding: 4px;\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png\" alt=\"whm\" height=\"304\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png 296w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d-292x300.png 292w\" sizes=\"(max-width: 296px) 100vw, 296px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Add the IP to the Deny List:\n<ol>\n<li>Scroll down to the \u201cQuick Deny\u201d section.<\/li>\n<li>Enter the IP address you want to block.<\/li>\n<li>Add a reason (optional but recommended) \u2014 e.g., <em>Brute-force attack.<\/em><\/li>\n<li>Click Quick Deny.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2d5111.png\"><img decoding=\"async\" class=\"alignnone wp-image-21306 size-full\" style=\"border: 1px solid #ccc; border-radius: 6px; padding: 4px;\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2d5111.png\" alt=\"quick deny\" height=\"435\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2d5111.png 1053w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2d5111-300x124.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2d5111-1024x423.png 1024w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2d5111-768x317.png 768w\" sizes=\"(max-width: 1053px) 100vw, 1053px\" \/><\/a><\/li>\n<li>Alternatively, you can manually add the IP under:\n<pre>Firewall Configuration &gt; csf.deny<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li>Restart CSF &amp; LFD<br \/>\nAfter<a name=\"unblock\"><\/a> blocking the IP, click Restart CSF + LFD.<br \/>\nThis ensures the new rule is applied immediately.<\/li>\n<\/ol>\n<h3><strong>How to Unblock an IP Address in CSF?<\/strong><\/h3>\n<p>If you need to remove an IP from the block list:<\/p>\n<ol>\n<li>Open ConfigServer Security &amp; Firewall in WHM.<\/li>\n<li>Go to Quick Unblock.<\/li>\n<li>Enter the IP address.<\/li>\n<li>Click Quick Unblock.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2c166e.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-21305 size-full\" style=\"border: 1px solid #ccc; border-radius: 6px; padding: 4px;\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2c166e.png\" alt=\"unblock\" width=\"1053\" height=\"435\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2c166e.png 1053w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2c166e-300x124.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2c166e-1024x423.png 1024w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2c166e-768x317.png 768w\" sizes=\"auto, (max-width: 1053px) 100vw, 1053px\" \/><\/a><\/li>\n<\/ol>\n<p>Or manually <a name=\"practices\"><\/a>remove it from:<\/p>\n<pre>csf.deny<\/pre>\n<p>Restart CSF again to apply changes.<\/p>\n<h3><strong>Tips &amp; Best Practices<\/strong><\/h3>\n<ul>\n<li>Avoid blocking entire IP ranges unless necessary.<\/li>\n<li>Keep CSF updated to the latest version.<\/li>\n<li>Enable LFD (Login Failure Daemon) to auto-block abusive IPs.<\/li>\n<li>Whitelist <a name=\"conclusion\"><\/a>your own IP to prevent accidental lockouts.<\/li>\n<li>Review server logs regularly for suspicious activity.<\/li>\n<\/ul>\n<h3><strong>Conclusion<\/strong><\/h3>\n<p>Blocking an IP in WHM using CSF is a fast and effective method to secure your server. By using the Quick Deny feature, you can protect your server from brute-force attacks, bots, and suspicious traffic. Regular monitoring and proper firewall rules help maintain a secure hosting environment.<\/p>\n<p style=\"text-align: center;\"><em><strong>Looking to manage your server\u2019s security more efficiently? Check out our guide on <a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-configure-the-csf-firewall-in-whm\/\"> How to configure the CSF firewall in WHM<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide explains how to block an IP address using CSF Firewall in WHM, helping improve server security and reduce malicious traffic. The steps are simple and suitable for both&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-block-an-ip-address-using-csf-firewall-in-whm%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=How%20to%20Block%20an%20IP%20Address%20in%20WHM%20Using%20CSF&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-block-an-ip-address-using-csf-firewall-in-whm%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-block-an-ip-address-using-csf-firewall-in-whm%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[880],"tags":[212],"class_list":["post-21302","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-whm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Block an IP Address in WHM Using CSF<\/title>\n<meta name=\"description\" content=\"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Block an IP Address in WHM Using CSF\" \/>\n<meta property=\"og:description\" content=\"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-13T10:23:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-03T11:28:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png\" \/>\n\t<meta property=\"og:image:width\" content=\"296\" \/>\n\t<meta property=\"og:image:height\" content=\"304\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Block an IP Address in WHM Using CSF\" \/>\n<meta name=\"twitter:description\" content=\"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to Block an IP Address Using CSF Firewall in WHM\",\"datePublished\":\"2025-11-13T10:23:05+00:00\",\"dateModified\":\"2026-03-03T11:28:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/\"},\"wordCount\":505,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/Snag_5a2a540d.png\",\"keywords\":[\"WHM\"],\"articleSection\":[\"cPanel &amp; WHM\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/\",\"name\":\"How to Block an IP Address in WHM Using CSF\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/Snag_5a2a540d.png\",\"datePublished\":\"2025-11-13T10:23:05+00:00\",\"dateModified\":\"2026-03-03T11:28:18+00:00\",\"description\":\"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/Snag_5a2a540d.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/Snag_5a2a540d.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-block-an-ip-address-using-csf-firewall-in-whm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Block an IP Address Using CSF Firewall in WHM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Block an IP Address in WHM Using CSF","description":"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.","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:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/","og_locale":"en_GB","og_type":"article","og_title":"How to Block an IP Address in WHM Using CSF","og_description":"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2025-11-13T10:23:05+00:00","article_modified_time":"2026-03-03T11:28:18+00:00","og_image":[{"width":296,"height":304,"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png","type":"image\/png"}],"author":"Victor G","twitter_card":"summary_large_image","twitter_title":"How to Block an IP Address in WHM Using CSF","twitter_description":"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to Block an IP Address Using CSF Firewall in WHM","datePublished":"2025-11-13T10:23:05+00:00","dateModified":"2026-03-03T11:28:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/"},"wordCount":505,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png","keywords":["WHM"],"articleSection":["cPanel &amp; WHM"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/","name":"How to Block an IP Address in WHM Using CSF","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/#primaryimage"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png","datePublished":"2025-11-13T10:23:05+00:00","dateModified":"2026-03-03T11:28:18+00:00","description":"Block suspicious or abusive IP easily in WHM using the CSF firewall. Follow this guide to enhance server security and prevent unwanted access.","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/#primaryimage","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/11\/Snag_5a2a540d.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-block-an-ip-address-using-csf-firewall-in-whm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Block an IP Address Using CSF Firewall in WHM"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=21302"}],"version-history":[{"count":6,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21302\/revisions"}],"predecessor-version":[{"id":21330,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21302\/revisions\/21330"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=21302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=21302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=21302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}