{"id":1030,"date":"2021-07-19T05:59:32","date_gmt":"2021-07-19T10:59:32","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=1030"},"modified":"2021-11-18T07:51:41","modified_gmt":"2021-11-18T13:51:41","slug":"how-to-quick-block-an-ip-with-csf","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/","title":{"rendered":"How to quick-block an IP with CSF (WHM)"},"content":{"rendered":"\n<p>If you&#8217;ve been getting a lot of alerts for a specific IP that&#8217;s listed in a CSF e-mail but CSF hasn&#8217;t blocked the IP and you want to block the IP, these are the steps that will help resolve the noisy e-mails as well as keeping your server safe from attacks such as SQL injections and other such malicious behaviors.<\/p>\n\n\n\n<p>We&#8217;ll go through the step-by-step process to help you block an IP address within WHM.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Blocking an IP<\/h2>\n\n\n\n<p>The first thing you&#8217;ll want to do is login to WHM:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Log into WHM.<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"400\" height=\"309\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png\" alt=\"\" class=\"wp-image-1031\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png 400w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0-300x232.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>At the home screen after you&#8217;ve logged in, click on the icon that says Plugins<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"400\" height=\"125\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-home.png\" alt=\"\" class=\"wp-image-1032\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-home.png 400w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-home-300x94.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Click ConfigServer Security &amp; Firewall.<\/strong><\/li><\/ul>\n\n\n\n<p>Note that in this screenshot, there are additional plugins loaded on this server that may not be available on your server, so consider this an example screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"400\" height=\"55\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-plugin-screen.png\" alt=\"\" class=\"wp-image-1033\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-plugin-screen.png 400w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-plugin-screen-300x41.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Scroll down to the button that says Quick Deny<\/strong>.<\/li><\/ul>\n\n\n\n<p>This button should have a red text field to the right of it. This is the option you want to use for blocking an IP.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"400\" height=\"107\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csf-quick-deny.png\" alt=\"\" class=\"wp-image-1034\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csf-quick-deny.png 400w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csf-quick-deny-300x80.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Input the IP you want to block in the red text field.<\/strong><\/li><\/ul>\n\n\n\n<p>Add a comment like SQL injection attempt in this case. Optional but useful if you want to remember why you blocked an IP. You&#8217;ll see an example screenshot of how to input an IP and a comment.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"400\" height=\"94\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csf.png\" alt=\"\" class=\"wp-image-1035\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csf.png 400w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csf-300x71.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Click&nbsp;<code>Quick Deny<\/code>&nbsp;after you&#8217;ve done the above steps to apply the block.<\/strong><\/li><\/ul>\n\n\n\n<p>Once the block has been applied, you&#8217;ll then be taken to a screen confirming that the changes has taken effect immediately. Sometimes there will be a message that indicates an old IP in the block list has been removed. This is acceptable, as too many IPs in the deny or allow list can slow down the IP. If the old offending IP tries to compromise your server, it will simply get blocked again automatically.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"400\" height=\"100\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/quick-deny-applied.png\" alt=\"\" class=\"wp-image-1036\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/quick-deny-applied.png 400w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/quick-deny-applied-300x75.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<p>That&#8217;s it, you&#8217;ve now successfully added an IP to be blocked by the servers firewall.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve been getting a lot of alerts for a specific IP that&#8217;s listed in a CSF e-mail but CSF hasn&#8217;t blocked the IP and you want to block the IP, these are the steps that will help resolve the noisy e-mails as well as keeping your server safe from attacks such as SQL injections [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[177,126,143,230,123,125],"class_list":["post-1030","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-cloud","tag-csf","tag-dedicated","tag-firewall","tag-linux","tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to quick-block an IP with CSF (WHM) - KnownHost<\/title>\n<meta name=\"description\" content=\"Do you need to quick-block an IP address on your server? Read more inside to learn how to use WHM to block IPs with CSF.\" \/>\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.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to quick-block an IP with CSF (WHM) - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Do you need to quick-block an IP address on your server? Read more inside to learn how to use WHM to block IPs with CSF.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-19T10:59:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-18T13:51:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"How to quick-block an IP with CSF (WHM)\",\"datePublished\":\"2021-07-19T10:59:32+00:00\",\"dateModified\":\"2021-11-18T13:51:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/\"},\"wordCount\":332,\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/whm-0.png\",\"keywords\":[\"cloud\",\"csf\",\"dedicated\",\"firewall\",\"linux\",\"vps\"],\"articleSection\":[\"cPanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/\",\"name\":\"How to quick-block an IP with CSF (WHM) - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/whm-0.png\",\"datePublished\":\"2021-07-19T10:59:32+00:00\",\"dateModified\":\"2021-11-18T13:51:41+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"Do you need to quick-block an IP address on your server? Read more inside to learn how to use WHM to block IPs with CSF.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/whm-0.png\",\"contentUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/whm-0.png\",\"width\":400,\"height\":309},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-quick-block-an-ip-with-csf\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to quick-block an IP with CSF (WHM)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to quick-block an IP with CSF (WHM) - KnownHost","description":"Do you need to quick-block an IP address on your server? Read more inside to learn how to use WHM to block IPs with CSF.","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.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/","og_locale":"en_US","og_type":"article","og_title":"How to quick-block an IP with CSF (WHM) - KnownHost","og_description":"Do you need to quick-block an IP address on your server? Read more inside to learn how to use WHM to block IPs with CSF.","og_url":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/","og_site_name":"KnownHost","article_published_time":"2021-07-19T10:59:32+00:00","article_modified_time":"2021-11-18T13:51:41+00:00","og_image":[{"url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png","type":"","width":"","height":""}],"author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"How to quick-block an IP with CSF (WHM)","datePublished":"2021-07-19T10:59:32+00:00","dateModified":"2021-11-18T13:51:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/"},"wordCount":332,"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png","keywords":["cloud","csf","dedicated","firewall","linux","vps"],"articleSection":["cPanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/","url":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/","name":"How to quick-block an IP with CSF (WHM) - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/#primaryimage"},"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png","datePublished":"2021-07-19T10:59:32+00:00","dateModified":"2021-11-18T13:51:41+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"Do you need to quick-block an IP address on your server? Read more inside to learn how to use WHM to block IPs with CSF.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/#primaryimage","url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png","contentUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/whm-0.png","width":400,"height":309},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-to-quick-block-an-ip-with-csf\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to quick-block an IP with CSF (WHM)"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=1030"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1030\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=1030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=1030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=1030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}