{"id":288,"date":"2023-10-06T08:39:39","date_gmt":"2023-10-06T08:39:39","guid":{"rendered":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?p=288"},"modified":"2025-04-11T09:21:26","modified_gmt":"2025-04-11T09:21:26","slug":"how-to-enable-modsecurity-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html","title":{"rendered":"How to Enable ModSecurity in cPanel?"},"content":{"rendered":"<div class=\"kb-article-content\">\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">By enabling ModSecurity in your cPanel, You are taking a proactive step towards enhancing the security of your website.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">In simple words, ModSecurity is a powerful web application firewall that helps in the website\u2019s protection from various kinds of online threats and attacks.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">As we all know, there is a major rise in cybersecurity threats, and websites are frequently targeted by malicious actors seeking to exploit vulnerabilities. In that case, ModSecurity plays a major role by serving as a robust web application firewall that acts as a strong wall between your website and potential threats.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">In this article, we will discuss the step-by-step process to enable ModSecurity in your cPanel for enhanced security on your website.<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/258\/how-to-install-a-php-script-in-cpanel.html\"><strong>How to Install a PHP Script in cPanel?<\/strong><\/a><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Steps to Enable ModSecurity in cPanel<\/strong><\/span><\/h2>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong><span style=\"font-weight: 400;\">\u2794 Firstly, log in to cPanel with your username &amp; password.<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto; display: block; margin: 10px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png\" alt=\"cPanel\" width=\"405\" height=\"383\"><\/span><\/strong><\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong><span style=\"font-weight: 400;\">\u2794 Once you log in, Locate the \u2018Security\u2019 section in the cPanel.<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto; display: block; margin: 10px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/778_Security-option.png\" alt=\"Security option\" width=\"845\" height=\"60\"><\/span><\/strong><\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong><span style=\"font-weight: 400;\">\u2794 In that section, you will find the \u2018ModSecurity\u2019. Just click on it.<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto; display: block; margin: 10px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/779_Select-on-ModSecurity-Interface.png\" alt=\"Select on ModSecurity Interface\" width=\"847\" height=\"314\"><\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">\u2794 After clicking it, You will reach the ModSecurity Interface, where you will see the listed domains associated with your particular cPanel account.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto; display: block; margin: 10px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/780_list-of-domains-associated.png\" alt=\"list of domains associated\" width=\"248\" height=\"96\"><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">\u2794 In that interface, you will see a toggle switch \u2018On\u2019 &amp; \u2018OFF.\u2019 To enable ModSecurity, Just toggle switch to turn it on.<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto; display: block; margin: 10px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/781_Click-on-or-off-option.png\" alt=\"Click on or off option\" width=\"754\" height=\"95\"><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">By this, Your ModSecurity gets enabled in your cPanel account!<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/287\/How-to-Disable-ModSecurity-in-cPanel.html\"><strong>How to Disable ModSecurity in cPanel?<\/strong><\/a><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Conclusion<\/strong><\/span><\/h2>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">Following the steps outlined in this article, you can protect your website from a wide range of web-based attacks. However, it&#8217;s important to monitor your ModSecurity logs and keep your rules fully updated to maintain a higher level of security.<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>By enabling ModSecurity in your cPanel, You are taking a proactive step towards enhancing the security of your website. In simple words, ModSecurity is a powerful web application firewall that helps in the website\u2019s protection from various kinds of online threats and attacks. As we all know, there is a major rise in cybersecurity threats, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Enable ModSecurity in cPanel?<\/title>\n<meta name=\"description\" content=\"Learn to enable ModSecurity in cPanel for a particular domain with our step-by-step guide in detail. Let\u2019s get started!\" \/>\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.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enable ModSecurity in cPanel?\" \/>\n<meta property=\"og:description\" content=\"Learn to enable ModSecurity in cPanel for a particular domain with our step-by-step guide in detail. Let\u2019s get started!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-06T08:39:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-11T09:21:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html\",\"name\":\"How to Enable ModSecurity in cPanel?\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png\",\"datePublished\":\"2023-10-06T08:39:39+00:00\",\"dateModified\":\"2025-04-11T09:21:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\"},\"description\":\"Learn to enable ModSecurity in cPanel for a particular domain with our step-by-step guide in detail. Let\u2019s get started!\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html#primaryimage\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png\",\"contentUrl\":\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Enable ModSecurity in cPanel?","description":"Learn to enable ModSecurity in cPanel for a particular domain with our step-by-step guide in detail. Let\u2019s get started!","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.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html","og_locale":"en_US","og_type":"article","og_title":"How to Enable ModSecurity in cPanel?","og_description":"Learn to enable ModSecurity in cPanel for a particular domain with our step-by-step guide in detail. Let\u2019s get started!","og_url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2023-10-06T08:39:39+00:00","article_modified_time":"2025-04-11T09:21:26+00:00","og_image":[{"url":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png","type":"","width":"","height":""}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html","name":"How to Enable ModSecurity in cPanel?","isPartOf":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html#primaryimage"},"image":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html#primaryimage"},"thumbnailUrl":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png","datePublished":"2023-10-06T08:39:39+00:00","dateModified":"2025-04-11T09:21:26+00:00","author":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108"},"description":"Learn to enable ModSecurity in cPanel for a particular domain with our step-by-step guide in detail. Let\u2019s get started!","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/288\/how-to-enable-modsecurity-in-cpanel.html#primaryimage","url":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png","contentUrl":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/777_cPanel.png"},{"@type":"WebSite","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=288"}],"version-history":[{"count":2,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":2854,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/288\/revisions\/2854"}],"wp:attachment":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}