{"id":18441,"date":"2026-09-30T08:58:30","date_gmt":"2026-09-30T05:58:30","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/modsecurity-cpanel\/"},"modified":"2026-09-30T08:58:30","modified_gmt":"2026-09-30T05:58:30","password":"","slug":"modsecurity-cpanel","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/modsecurity-cpanel\/","title":{"rendered":"How to Manage ModSecurity in cPanel"},"content":{"rendered":"<div class=\"hy-tldr\" style=\"background:#f6f7fb;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:0 0 20px;line-height:1.8\"><strong>In short:<\/strong> ModSecurity is a web application firewall that works with the web server and protects your site from common attacks such as SQL injection and XSS by inspecting HTTP requests. Control it from cPanel, then Security, then ModSecurity: turn it on or off for all domains, or for each domain separately. Only turn it off temporarily to diagnose a problem, then turn it back on.<\/div>\n<p>ModSecurity is one of the most important security tools for web servers. It inspects HTTP traffic and blocks known attack patterns before they reach your website.<\/p>\n<p><strong>1.<\/strong> Log in to cPanel (see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-log-in-to-cpanel\/\">how to log in to cPanel<\/a>).<\/p>\n<p><strong>2.<\/strong> In the <strong>Security<\/strong> section, click <strong>ModSecurity<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/07\/23\/Screenshot-7_23_201712_22_49PM.png\" alt=\"ModSecurity\" \/><\/p>\n<p><strong>3.<\/strong> Use the switch at the top to turn ModSecurity on or off for all your domains, or the On\/Off switch next to each domain or subdomain.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/07\/23\/Screenshot-7_23_201712_50_54PM.png\" alt=\"ModSecurity per domain\" \/><\/p>\n<p><strong>Tip:<\/strong> if a legitimate action on your site is blocked (for example saving a page), contact support with the time and URL so we can adjust the rule, instead of leaving ModSecurity off.<\/p>\n<p class=\"hy-svc-link\" style=\"background:#fff5f7;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:20px 0;line-height:1.8\"><strong>Related service:<\/strong> <a href=\"https:\/\/www.hyyat.com\/en\/shared-hosting-2\/\">Hyyat Host shared hosting<\/a> includes ModSecurity protection and 24\/7 support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short: ModSecurity is a web application firewall that works with the web server and protects your site from common attacks such as SQL injection and XSS by inspecting HTTP requests. Control it from cPanel, then Security, then ModSecurity: turn it on or off for all domains, or for each domain separately. Only turn it [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2749],"doc_tag":[],"class_list":["post-18441","docs","type-docs","status-publish","hentry","doc_category-website-control-panel-cpanel"],"year_month":"2026-10","word_count":180,"total_views":"1","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Website control panel ( cpanel )","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18441"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18441\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18441"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18441"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}