{"id":1976,"date":"2021-09-17T09:01:52","date_gmt":"2021-09-17T09:01:52","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1976"},"modified":"2021-09-17T09:02:37","modified_gmt":"2021-09-17T09:02:37","slug":"installing-mod_security-on-centos-server","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/","title":{"rendered":"Installing Mod_Security on CentOS Server"},"content":{"rendered":"<p>For those who might not be aware, ModSecurity is an application firewall that helps in protecting the server from various type of script exploits that may be found within the web applications. With it, server admins will harden the security of the server, adding an increased protecting layer to the network firewall.<\/p>\n<p>Below are the step that explain how to Install ModSecurity on CentOS Dedicated Server ?<\/p>\n<p><strong>Step i :<\/strong> You need to hit the below command to add the ModSecurity repository manually<\/p>\n<blockquote><p><em>cd \/etc\/yum.repos.d<\/em><\/p><\/blockquote>\n<p><strong>Step ii :<\/strong> Now move along with creating a file named as utterramblings.repo<\/p>\n<blockquote><p><em>touch utterramblings.repo<\/em><\/p><\/blockquote>\n<p><strong>Step iii :<\/strong> To the file with \u201cvi\u201d or \u201cnano\u201d you need to make amendments, with including the below stated information :<\/p>\n<div id=\"_mcePaste\">\n<blockquote><p>[utterramblings]<\/p><\/blockquote>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"Section1\">\n<blockquote><p>name=Jason\u2019s Utter Ramblings Repo<\/p><\/blockquote>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"Section2\">\n<blockquote><p>baseurl=http:\/\/www.jasonlitka.com\/media\/EL$releasever\/$basearch\/<\/p><\/blockquote>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"Section3\">\n<blockquote><p>enabled=1<\/p><\/blockquote>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"Section4\">\n<blockquote><p>gpgcheck=1<\/p><\/blockquote>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"Section5\">\n<blockquote><p>gpgkey=http:\/\/www.jasonlitka.com\/media\/RPM-GPG-KEY-jlitka<\/p><\/blockquote>\n<\/div>\n<p><strong>Step iv :<\/strong> Then, for installing the packages onto your server run the below command :<\/p>\n<blockquote><p><em>yum install mod_security<\/em><\/p><\/blockquote>\n<p>With a functioning version of mod_security installed enable it and can be readily used over your Apache web server.<\/p>\n<p><strong>Step v :<\/strong> According to your requirements configure mod_security.<\/p>\n<p>It would get updated automatically with the other updates of yum is that the benefits of compiling mod_security in a yum repository.<\/p>\n<p>For any assistance, please free feel to contact our 24\u00d77 HelpDesk either via. Live Chat or by sending an email to support[@]ownwebservers.com.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those who might not be aware, ModSecurity is an application firewall that helps in protecting the server from various type of script exploits that may be found within the web applications. With it, server admins will harden the security of the server, adding an increased protecting layer to the network firewall. Below are the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-1976","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installing Mod_Security on CentOS Server - OWS KB<\/title>\n<meta name=\"description\" content=\"For those who might not be aware, Mod_Security is an application firewall that helps in protecting the server from various type of script exploits that may be found within the web applications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Mod_Security on CentOS Server - OWS KB\" \/>\n<meta property=\"og:description\" content=\"For those who might not be aware, Mod_Security is an application firewall that helps in protecting the server from various type of script exploits that may be found within the web applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-17T09:01:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-17T09:02:37+00:00\" \/>\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=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/\",\"name\":\"Installing Mod_Security on CentOS Server - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-09-17T09:01:52+00:00\",\"dateModified\":\"2021-09-17T09:02:37+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"description\":\"For those who might not be aware, Mod_Security is an application firewall that helps in protecting the server from various type of script exploits that may be found within the web applications.\",\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/installing-mod_security-on-centos-server\/\",\"name\":\"Installing Mod_Security on CentOS Server\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1976"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1976\/revisions"}],"predecessor-version":[{"id":1977,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1976\/revisions\/1977"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}