{"id":1166,"date":"2018-07-07T15:47:07","date_gmt":"2018-07-07T15:47:07","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=1166"},"modified":"2023-02-01T13:54:45","modified_gmt":"2023-02-01T13:54:45","slug":"how-to-disable-modsecurity-in-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-disable-modsecurity-in-cpanel\/","title":{"rendered":"How to Disable ModSecurity in cPanel"},"content":{"rendered":"<p>This article will show how you can <strong>disable\u00a0ModSecurity<\/strong> in cPanel. ModSecurity is an important apache module that protects your websites from multiple possible security threats, and thus, it is enabled by default on all the accounts hosted with us.<\/p>\n<p>However, in the course of development work, you may encounter a situation in which you must temporarily disable ModSecurity, like a false mod_security rule triggered.<\/p>\n<h3 id=\"how-to-disable-modsecurity-in-cpanel\">How to Disable ModSecurity in cPanel<\/h3>\n<ol>\n<li>Log into cPanel<\/li>\n<li>Scroll down to <em>Security<\/em> and choose <strong><strong>ModSecurity<br \/>\n<\/strong><\/strong><\/p>\n<figure id=\"attachment_7782\" aria-describedby=\"caption-attachment-7782\" style=\"width: 643px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7782\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-783x256.png\" alt=\"\" width=\"643\" height=\"210\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-783x256.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-300x98.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-768x251.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-50x16.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-1536x502.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-60x20.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1-100x33.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/ModSecurity-1.png 2000w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-7782\" class=\"wp-caption-text\">cPanel &gt; Security &gt; ModSecurity<\/figcaption><\/figure><\/li>\n<\/ol>\n<p>3. Choose the domain you are developing with and change its status to <strong>OFF<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7783\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-783x187.png\" alt=\"Disable ModSecurity\" width=\"643\" height=\"154\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-783x187.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-300x72.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-768x184.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-50x12.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-1536x367.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-2048x489.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-60x14.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/07\/Disable-ModSecurity-100x24.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p>That&#8217;s it; you know now how to disable ModSecurity in cPanel.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert    \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tWe <strong>highly recommend<\/strong> you to turn ModSecurity <strong>back to ON<\/strong> once your development work is complete to <strong>maintain the security and safety<\/strong> of your websites through our custom ModSecurity rules.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>This article will show how you can disable\u00a0ModSecurity in cPanel. ModSecurity is an important apache module that protects your websites from multiple possible security threats, and thus, it is enabled by default on all the accounts hosted with us. However, in the course of development work, you may encounter a&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[36],"ht-kb-tag":[],"class_list":["post-1166","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cpanel"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=1166"}],"version-history":[{"count":4,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1166\/revisions"}],"predecessor-version":[{"id":7784,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1166\/revisions\/7784"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=1166"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=1166"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=1166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}