{"id":864,"date":"2020-06-04T16:29:45","date_gmt":"2020-06-04T08:29:45","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=864"},"modified":"2026-01-07T15:56:26","modified_gmt":"2026-01-07T07:56:26","slug":"how-to-disable-modsecurity-in-cpanel","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/how-to-disable-modsecurity-in-cpanel","title":{"rendered":"How to Disable ModSecurity in cPanel"},"content":{"rendered":"<h4>How to Disable ModSecurity in cPanel?<\/h4>\n<p>ModSecurity is a web application firewall (WAF) that protects on web application layer that is being the most target for a website. It provides protection over the webserver by looks for known malicious request as well as monitor outbound data. Beside that, the block information such as leakage of detailed error messages,social security number or even credit card numbers.<\/p>\n<p>However, in the course of development user may encounter situation like a 404- Page Not Found error OR Internal Server Error in which user must disable ModSecurity in order to allow the content to be updated.<\/p>\n<p>Do follow along with the steps below to see how user may disable ModSecurity for individual domains OR all domains on user cPanel hosting.<\/p>\n<p><u>For individual domain:<\/u><\/p>\n<p>Step 1: Login into cPanel:[YOURDOMAIN.COM\/cpanel].<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/14062901421\/original\/lc7YOV-QaAvyAcNx2ZWpZhlQYC9K85KLUA.png?1583726125\" alt=\"How to Disable ModSecurity in cPanel?\" width=\"1028\" height=\"819\" \/><\/p>\n<p>Step 2: Under security,<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/14062901478\/original\/L0G0ZWIK65Ke5VWOzIbQIE8NzeFMBL3m3Q.png?1583726321\" \/><\/p>\n<p>Step 3: Look for user exact domain and select Off.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/14062901423\/original\/ZhBywq1lvIHMPeysLMw-cmzaVPIZah4gcw.png?1583726125\" \/><\/p>\n<p><u>For complete hosting:<\/u><\/p>\n<p>Step 1: Login into cPanel:[YOURDOMAIN.COM\/cpanel].<\/p>\n<p>Step 2: Besides that , Under security,<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/14062901483\/original\/8JepVCAPKQhVYryypdAf0BnxJVWFUwcUDQ.png?1583726341\" \/><\/p>\n<p>Step 3: After that ,Under Configure All Domains, click Disable.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/14062901416\/original\/HhWJ45GByKVERwfvUE1CcUVJeL5elTHFmA.png?1583726125\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Disable ModSecurity in cPanel? ModSecurity is a web application firewall (WAF) that protects on web application layer that is being the most target for a website. It provides protection over the webserver by looks for known malicious request as well as monitor outbound data. Beside that, the block information such as leakage of detailed error messages,social security number&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[34],"kbtag":[1306,1582],"class_list":["post-864","kb","type-kb","status-publish","hentry","kbtopic-cpanel","kbtag-cpanel","kbtag-modsecurity"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=864"}],"version-history":[{"count":3,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/864\/revisions"}],"predecessor-version":[{"id":5199,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/864\/revisions\/5199"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=864"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=864"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}