{"id":2280,"date":"2021-09-25T07:12:09","date_gmt":"2021-09-25T07:12:09","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2280"},"modified":"2021-09-25T07:12:09","modified_gmt":"2021-09-25T07:12:09","slug":"avoid-dos-attacks-using-mod_evasive-on-apache-web-server","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/","title":{"rendered":"Avoid DoS Attacks using Mod_Evasive on Apache Web Server"},"content":{"rendered":"<p>Denial of Service, normally called the DDoS attack, is one among the largest threats for your servers security. in a DoS attack, attackers with destructive intentions attempt overloading the server with requests more than the server will handle. The attacker is ready to seek out holes within the security of the server and exploit it to hold out the attack. Please check the subsequent to understand more about DoS Attack .Throughout the initial stages of the attack, the attacker try infecting computing machines with malware or botnets, once a adequate range of machines get infected, a co-ordinated attack is launched automatically over your Web Hosting server, wherein, simultaneous requests are sent to your server. These requests are often within the multiples of thousand.<\/p>\n<p>How to avoid DoS attacks Using mod_evasive ?<br \/>\nmod_evasive are often associate efficient methodology of avoiding a DoS attack. it&#8217;s one among the modules available for an Apache HTTP server, that comes at no cost.<\/p>\n<h2><strong>How to install mod_evasive over your Linux Hosting server ?<\/strong><\/h2>\n<p><strong>Note:\u00a0<\/strong>Before proceeding with the installation, it is important that the server is running Apache.<\/p>\n<p><strong>Step i<\/strong>\u00a0: You are required to login to the server via SSH as root<\/p>\n<p><strong>Step ii<\/strong>\u00a0: Ensure that the Apache is updated with the latest development files. Use the below command to install http-devel package on your server<\/p>\n<blockquote><p>yum install httpd-devel<\/p><\/blockquote>\n<p><strong>Step iii<\/strong>\u00a0: Using the following command, you must download the updated version :<\/p>\n<blockquote><p>wget\u00a0http:\/\/www.zdziarski.com\/blog\/wp-content\/uploads\/2010\/02\/mod_evasive_1.10.1.tar.gz<\/p><\/blockquote>\n<p><strong>Step iv<\/strong>\u00a0: Then use the below command for extracting the archived files:<\/p>\n<blockquote><p>tar xvzf mod_evasive_1.10.1.tar.gz mod_evasive\/<\/p><\/blockquote>\n<p><strong>Step v<\/strong>\u00a0: Then compile the module using the following command :<\/p>\n<blockquote><p>\/usr\/sbin\/apxs -cia \/usr\/src\/mod_evasive\/mod_evasive20.c<\/p><\/blockquote>\n<p><strong>Step vi<\/strong>\u00a0: For activating the module, fire the below command<\/p>\n<blockquote><p>chmod 755 \/usr\/lib\/httpd\/modules\/mod_evasive20.so<\/p><\/blockquote>\n<p><strong>Step vii<\/strong>\u00a0: You must then restart Apache<\/p>\n<blockquote><p>\/etc\/init.d\/httpd restart<\/p><\/blockquote>\n<p><strong>Step viii<\/strong>\u00a0: Ensure that it has been loaded correctly<\/p>\n<blockquote><p>grep -i evasive \/etc\/httpd\/conf\/httpd.conf<\/p><\/blockquote>\n<p>The result should be :\u00a0<em>LoadModule evasive20_module \/usr\/lib\/httpd\/modules\/mod_evasive20.so<\/em><\/p>\n<blockquote><p>Run :\u00a0<em>php -r \u2018phpinfo();\u2019 | grep -i evasive<\/em><\/p><\/blockquote>\n<p>The mod_evasive should get listed<\/p>\n<p><strong>Step ix :<\/strong>\u00a0Now the Apache conf file:\u00a0<em>\/etc\/httpd\/conf\/httpd.conf\u00a0<\/em><em>should be updated with adding configuration rules<\/em><\/p>\n<blockquote><p><em>&lt;IfModule mod_evasive20.c&gt;<\/em><br \/>\n<em>DOSHashTableSize 3097<\/em><br \/>\n<em>DOSPageCount 6<\/em><br \/>\n<em>DOSSiteCount 100<\/em><br \/>\n<em>DOSPageInterval 2<\/em><br \/>\n<em>DOSSiteInterval 2<\/em><br \/>\n<em>DOSBlockingPeriod 600<\/em><br \/>\n<em>&lt;\/IfModule&gt;<\/em><\/p><\/blockquote>\n<p>You can also go through the documentation for determining the best configuration settings for each. This should help you avoid a DoS attack on your server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Denial of Service, normally called the DDoS attack, is one among the largest threats for your servers security. in a DoS attack, attackers with destructive intentions attempt overloading the server with requests more than the server will handle. The attacker is ready to seek out holes within the security of the server and exploit it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-2280","post","type-post","status-publish","format-standard","hentry","category-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Avoid DoS Attacks using Mod_Evasive on Apache Web Server - OWS KB<\/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:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Avoid DoS Attacks using Mod_Evasive on Apache Web Server - OWS KB\" \/>\n<meta property=\"og:description\" content=\"Denial of Service, normally called the DDoS attack, is one among the largest threats for your servers security. in a DoS attack, attackers with destructive intentions attempt overloading the server with requests more than the server will handle. The attacker is ready to seek out holes within the security of the server and exploit it [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-25T07:12:09+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=\"2 minutes\">\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\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/\",\"name\":\"Avoid DoS Attacks using Mod_Evasive on Apache Web Server - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-09-25T07:12:09+00:00\",\"dateModified\":\"2021-09-25T07:12:09+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-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\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/avoid-dos-attacks-using-mod_evasive-on-apache-web-server\/\",\"name\":\"Avoid DoS Attacks using Mod_Evasive on Apache Web 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\/2280","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=2280"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2280\/revisions"}],"predecessor-version":[{"id":2281,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2280\/revisions\/2281"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}