{"id":18139,"date":"2024-12-03T07:17:13","date_gmt":"2024-12-03T07:17:13","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=18139"},"modified":"2024-12-03T07:18:06","modified_gmt":"2024-12-03T07:18:06","password":"","slug":"how-to-install-and-configure-modsecurity-in-whm","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/","title":{"rendered":"How to Install and Configure ModSecurity in WHM"},"content":{"rendered":"\n<p>ModSecurity is a powerful web application firewall (WAF) designed to protect your server and hosted websites from security threats such as SQL injections, cross-site scripting, and other common attacks. This guide explains how to install and configure ModSecurity in WHM.<\/p>\n\n\n\n<p>Below is are steps on how to install ModSecurity on a cPanel server.s<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/\" target=\"_blank\" rel=\"noreferrer noopener\">Login to your server using SSH.<\/a><\/strong><\/li>\n\n\n\n<li>Uninstall ModSecurity if you had installed it, You cab use the command below<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>yum remove ea-apache24-mod_security2<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can then install connectors that that allow mod-security to work with a web-server. Run the appropriate command depending on the web-server that you are using.<\/li>\n\n\n\n<li><strong>For Apache<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install ea-modsec30-connector-apache24<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>For Nginx<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install ea-modsec30-connector-nginx<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now log in to WHM of the <strong>Destination Serve<\/strong>r either with the root account. Normally you will use one of the URLs below;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;your_server_ip:2087\n\nhttps:\/\/your_server_hostname:2087<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized is-style-zoooom\"><img decoding=\"async\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-703.png\" alt=\"This image has an empty alt attribute; its file name is image-703.png\" style=\"width:1203px;height:auto\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Under the Software section, click on the<strong>\u00a0EasyApache 4.<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"991\" height=\"357\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-89.png\" alt=\"\" class=\"wp-image-18140\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-89.png 991w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-89-300x108.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-89-768x277.png 768w\" sizes=\"auto, (max-width: 991px) 100vw, 991px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the\u00a0<strong>customize<\/strong>\u00a0button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"225\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-90.png\" alt=\"\" class=\"wp-image-18141\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-90.png 828w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-90-300x82.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-90-768x209.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to Additional Packages and confirm that the controller is installed. If you are working with apache, ensure that modsec30-connector-apache24 is installed. For Nginx, you require modsec30-connector-nginx.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"323\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-91.png\" alt=\"\" class=\"wp-image-18142\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-91.png 753w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-91-300x129.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You now need to enable them  by toggling the toggle buttons<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"542\" height=\"153\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-92.png\" alt=\"\" class=\"wp-image-18143\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-92.png 542w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-92-300x85.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the <strong>Next<\/strong>, then on <strong>Review<\/strong> then on <strong>Provision<\/strong> button to complete the installation.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"217\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-93.png\" alt=\"\" class=\"wp-image-18144\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-93.png 767w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-93-300x85.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"806\" height=\"266\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-94.png\" alt=\"\" class=\"wp-image-18145\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-94.png 806w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-94-300x99.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-94-768x253.png 768w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"221\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-95.png\" alt=\"\" class=\"wp-image-18146\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-95.png 859w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-95-300x77.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-95-768x198.png 768w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next is to install the OWASP Core Rule Set using the below command.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install ea-modsec30-rules-owasp-crs<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Configuring ModSecurity<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the ModSecurity configuration, you can customize various global settings, including the audit log behavior, rules engine, and connection engine.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"268\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-96-1024x268.png\" alt=\"\" class=\"wp-image-18147\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-96-1024x268.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-96-300x78.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-96-768x201.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-96.png 1029w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"782\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-97.png\" alt=\"\" class=\"wp-image-18148\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-97.png 865w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-97-300x271.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-97-768x694.png 768w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Please see <a href=\"https:\/\/docs.cpanel.net\/whm\/security-center\/modsecurity-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">this document <\/a>or more details<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>ModSecurity Tools<\/strong><\/h4>\n\n\n\n<p>ModSecurity Tools provide options for monitoring and managing the firewall rules. You can view all the rules, enable or disable them as needed, and even add new rules as required.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"210\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-98.png\" alt=\"\" class=\"wp-image-18149\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-98.png 982w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-98-300x64.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-98-768x164.png 768w\" sizes=\"auto, (max-width: 982px) 100vw, 982px\" \/><\/figure>\n\n\n\n<p><strong>ModSecurity Vendors<\/strong><\/p>\n\n\n\n<p>The ModSecurity Vendors section allows you to add and manage different rule sets. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"317\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-99-1024x317.png\" alt=\"\" class=\"wp-image-18150\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-99-1024x317.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-99-300x93.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-99-768x238.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-99.png 1042w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>For example, you can view, activate, or deactivate the installed OWASP CRS rule set. <\/p>\n\n\n\n<p>Additionally, you can edit or exclude specific rule sets, such as IP reputation or WordPress exclusions, based on your needs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"463\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-100-1024x463.png\" alt=\"\" class=\"wp-image-18151\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-100-1024x463.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-100-300x136.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-100-768x348.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-100.png 1065w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can also check the following cPanel Articles regarding ModSecurity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/docs.cpanel.net\/cpanel\/security\/modsecurity\/\" target=\"_blank\" rel=\"noreferrer noopener\">ModSecurity\u00ae<\/a><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/docs.cpanel.net\/whm\/security-center\/modsecurity-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">ModSecurity\u00ae Tools<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>ModSecurity is a powerful web application firewall (WAF) designed to protect your server and hosted websites from security threats such as SQL injections, cross-site scripting, and other common attacks. This guide explains how to install and configure ModSecurity in WHM. Below is are steps on how to install ModSecurity on a cPanel server.s Configuring ModSecurity [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1820,1878,1824,1835,1879,2128],"doc_tag":[],"class_list":["post-18139","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-get-all-your-cpanel-help","doc_category-dedicated-servers","doc_category-security","doc_category-servers","doc_category-vps-servers"],"year_month":"2026-07","word_count":355,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"Cpanel","term_url":"https:\/\/truehost.com\/support\/docs-category\/get-all-your-cpanel-help\/"},{"term_name":"dedicated servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"Security","term_url":"https:\/\/truehost.com\/support\/docs-category\/security\/"},{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/vps-servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install and Configure ModSecurity in WHM -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Configure ModSecurity in WHM -\" \/>\n<meta property=\"og:description\" content=\"ModSecurity is a powerful web application firewall (WAF) designed to protect your server and hosted websites from security threats such as SQL injections, cross-site scripting, and other common attacks. This guide explains how to install and configure ModSecurity in WHM. Below is are steps on how to install ModSecurity on a cPanel server.s Configuring ModSecurity [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-03T07:18:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-703.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/\",\"name\":\"How to Install and Configure ModSecurity in WHM -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-703.png\",\"datePublished\":\"2024-12-03T07:17:13+00:00\",\"dateModified\":\"2024-12-03T07:18:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-703.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-703.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-and-configure-modsecurity-in-whm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Configure ModSecurity in WHM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Configure ModSecurity in WHM -","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:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Configure ModSecurity in WHM -","og_description":"ModSecurity is a powerful web application firewall (WAF) designed to protect your server and hosted websites from security threats such as SQL injections, cross-site scripting, and other common attacks. This guide explains how to install and configure ModSecurity in WHM. Below is are steps on how to install ModSecurity on a cPanel server.s Configuring ModSecurity [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/","article_modified_time":"2024-12-03T07:18:06+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-703.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/","name":"How to Install and Configure ModSecurity in WHM -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-703.png","datePublished":"2024-12-03T07:17:13+00:00","dateModified":"2024-12-03T07:18:06+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-703.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-703.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-and-configure-modsecurity-in-whm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Install and Configure ModSecurity in WHM"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=18139"}],"version-history":[{"count":2,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18139\/revisions"}],"predecessor-version":[{"id":18153,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18139\/revisions\/18153"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=18139"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=18139"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=18139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}