{"id":200,"date":"2013-06-01T17:39:39","date_gmt":"2013-06-01T17:39:39","guid":{"rendered":"http:\/\/blog.shineservers.com\/?p=200"},"modified":"2013-06-01T17:39:39","modified_gmt":"2013-06-01T17:39:39","slug":"how-to-install-mod_evasive-in-cpanel-server","status":"publish","type":"post","link":"https:\/\/www.shineservers.com\/2013\/06\/01\/how-to-install-mod_evasive-in-cpanel-server\/","title":{"rendered":"How to install mod_evasive in cPanel server"},"content":{"rendered":"<p>Please follow the procedure given below to install and configure\u00a0 mod_evasive in\u00a0 cPanel server with apache 2.2.<\/p>\n<blockquote>\n<pre># cd \/usr\/local\/src\/\n# wget http:\/\/www.zdziarski.com\/blog\/wp-content\/uploads\/2010\/02\/mod_evasive_1.10.1.tar.gz\n# tar -xvzf mod_evasive_1.10.1.tar.gz\n# cd mod_evasive\/\n# \/usr\/local\/apache\/bin\/apxs -cia mod_evasive20.c<\/pre>\n<\/blockquote>\n<p>Now create a file named\u00a0 \/usr\/local\/apache\/conf\/mod_evasive.conf and add the following lines<\/p>\n<blockquote>\n<pre># cat \/usr\/local\/apache\/conf\/mod_evasive.conf\nLoadModule evasive20_module\u00a0\u00a0 modules\/mod_evasive20.so\n&lt;IfModule mod_evasive20.c&gt;\nDOSHashTableSize\u00a0\u00a0\u00a0 3097\nDOSPageCount\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\nDOSSiteCount\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 50\nDOSPageInterval\u00a0\u00a0\u00a0\u00a0 1\nDOSSiteInterval\u00a0\u00a0\u00a0\u00a0 1\nDOSBlockingPeriod\u00a0\u00a0 10\n&lt;\/IfModule&gt;<\/pre>\n<\/blockquote>\n<p>Now include the above file inside\u00a0 \/usr\/local\/apache\/conf\/includes\/pre_main_global.conf<\/p>\n<blockquote>\n<pre>Include \"\/usr\/local\/apache\/conf\/mod_evasive.conf\"<\/pre>\n<\/blockquote>\n<p>Now rebuild httpd.conf<\/p>\n<blockquote>\n<pre>\/scripts\/rebuildhttpdconf<\/pre>\n<\/blockquote>\n<p>Now restart apache<\/p>\n<blockquote>\n<pre>\/scripts\/restartsrv httpd\n\n<\/pre>\n<pre><\/pre>\n<pre><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Please follow the procedure given below to install and configure\u00a0 mod_evasive in\u00a0 cPanel server with apache 2.2. # cd \/usr\/local\/src\/ # wget http:\/\/www.zdziarski.com\/blog\/wp-content\/uploads\/2010\/02\/mod_evasive_1.10.1.tar.gz # tar -xvzf mod_evasive_1.10.1.tar.gz # cd mod_evasive\/ # \/usr\/local\/apache\/bin\/apxs -cia mod_evasive20.c Now create a file named\u00a0 \/usr\/local\/apache\/conf\/mod_evasive.conf and add the following lines # cat \/usr\/local\/apache\/conf\/mod_evasive.conf LoadModule evasive20_module\u00a0\u00a0 modules\/mod_evasive20.so &lt;IfModule mod_evasive20.c&gt; DOSHashTableSize\u00a0\u00a0\u00a0 3097 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[58],"tags":[88],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-cpanel-control-panel","tag-installing-mod_evasive-cpanel"],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":0,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}