Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":160,"date":"2012-07-25T22:02:38","date_gmt":"2012-07-26T06:02:38","guid":{"rendered":"http:\/\/blog.unethost.com\/?p=160"},"modified":"2014-04-16T16:34:22","modified_gmt":"2014-04-16T08:34:22","slug":"what_is_mod_evasive","status":"publish","type":"post","link":"https:\/\/blog.unethost.com\/what_is_mod_evasive\/","title":{"rendered":"\u4ec0\u9ebc\u662fmod_evasive\uff1f"},"content":{"rendered":"

mod_evasive\u662fApache\u4f3a\u670d\u5668\u7684\u4e00\u500b\u7b2c\u4e09\u65b9\u6a21\u7d44\uff0c\u53ef\u4ee5\u56de\u907fHTTP DoS\u6216DDoS\u653b\u64ca\u3002\u5b83\u5728\u8a2d\u8a08\u4e0a\uff0c\u662f\u7db2\u8def\u6aa2\u6e2c\u548c\u7db2\u7d61\u7ba1\u7406\u5de5\u5177\uff0c \u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u914d\u7f6e\u8207iptables\u4ee5\u53ca\u8af8\u5982\u6b64\u985e\u7684\u9632\u706b\u7246\u6a21\u7d44\u6e9d\u901a\u3002 mod_evasive\u53ef\u4ee5\u900f\u904e\u96fb\u5b50\u90f5\u4ef6\u6216syslog\u7a0b\u5e8f\u4f86\u56de\u5831\u7db2\u8def\u6aa2\u6e2c \u7684\u7d50\u679c\u3002<\/p>\n

\u5de5\u4f5c\u539f\u7406<\/strong>\uff1a
\n\u901a\u904e\u5efa\u7acb\u5167\u90e8\u52d5\u614b\u7684IP\u5730\u5740\u548cURI hash\u8868\uff0c\u5982\u679c\u4e0b\u5217\u7684\u4efb\u4e00\u689d\u4ef6\u6eff\u8db3\uff0c\u5c31\u6703\u963b\u64cb\u67d0\u4e00IP\u5730\u5740\u5c0d\u7db2\u7ad9\u7684\u5b58\u53d6\uff1a
\n(1) \u5c0d\u540c\u4e00\u7db2\u9801\u6bcf\u79d2\u8d85\u904e\u67d0\u500b\u6b21\u6578\u7684\u8acb\u6c42\u3002
\n(2 )\u6bcf\u79d2\u91dd\u5c0d\u540c\u4e00\u500bapache\u7684\u5b50\u7a0b\u5e8f\uff0c\u9001\u51fa\u8d85\u904e50\u500b\u8acb\u6c42\u3002
\n(3) \u7576\u67d0\u500bIP\u5730\u5740\u88ab\u66ab\u6642\u5217\u5165\u9ed1\u540d\u55ae\u6642\uff0c\u4f9d\u7136\u9001\u51fa\u8acb\u6c42\u3002<\/p>\n

mod_evasive\u5c0d\u65bc\u55ae\u4e00\u4f3a\u670d\u5668\u7684\u8173\u672c\u653b\u64ca\u6216\u662f\u5206\u5e03\u5f0f\u653b\u64ca\uff0c\u90fd\u76f8\u7576\u6709\u6548\u3002\u7136\u800c\u5c31\u548c\u5176\u5b83\u8ff4\u907f\u7684\u65b9\u6cd5\u4e00\u6a23\uff0c\u5982\u679c\u4f3a\u670d\u5668\u7684\u983b\u5bec\u6216 \u662f\u8a18\u61b6\u4f53\u5df2\u7d93\u88ab\u653b\u64ca\u7684\u6d41\u91cf\u4f54\u7528\uff0c\u4f3a\u670d\u5668\u4f9d\u7136\u6703\u8b8a\u6162\u3002\u6240\u4ee5\u4f7f\u7528mod_evasive\u6642\uff0c\u5c07\u5176\u8207iptables\u9019\u985e\u7684\u9632\u706b\u7246\u6574\u5408\uff0c\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u767c\u63ee\u5b83\u7684\u529f\u6548\u3002<\/p>\n

\u9019\u500b\u6a21\u584a\u6703\u5728\u6bcf\u500bapache\u5b50\u7a0b\u5e8f\u4e2d\uff0c\u7522\u751f\u7368\u7acb\u7684\u76e3\u807d\u8005(listener)\uff0c\u56e0\u6b64mod_evasive\u6709\u5167\u5efa\u7684\u8a18\u61b6\u4f53\u6e05\u7406\u6a5f\u5236\u548c\u7e2e\u653e (scaling)\u7684\u80fd\u529b\u3002\u7531\u65bc\u9019\u7a2e\u5728\u6bcf\u4e00\u500bapache\u5b50\u7a0b\u5e8f\u4e2d\u7368\u7acb\u8a08\u7b97\u653b\u64ca\u7684\u6a5f\u5236\uff0c\u6b63\u5e38\u7684http\u8acb\u6c42\uff0c\u5e7e\u4e4e\u4e0d\u6703\u88ab\u8aa4\u5224\u70ba\u653b\u64ca\u3002\u53ea\u6709 \u8173\u672c\u653b\u64ca\u6703\u88ab\u5224\u5b9a\u70ba\u653b\u64ca\u3002\u5c31\u7b97\u6b63\u5728\u700f\u89bd\u7db2\u9801\u7684\u4f7f\u7528\u8005\uff0c\u4e0d\u505c\u5730\u6309F5\uff0c\u4f7f\u7db2\u9801\u91cd\u65b0\u8f09\u5165\uff0c\u4e5f\u4e0d\u6703\u88abmod_evasive\u8aa4\u5224\u70ba\u653b\u64ca\u3002<\/p>\n

\u5982\u4f55\u5b89\u88dd\uff1a
\n(1) \u4e0b\u8f09<\/a>
\n(2) tar zxvf \u00a0mod_evasive_1.10.1.tar.gz
\n(3) cd mod_evasive_1.10.1
\n(4) .\/configure
\n(5) make && make install
\n(6) \u91cd\u65b0\u555f\u52d5 apache<\/p>\n

\u63a5\u4e0b\u4f86\uff0c\u662f\u8a2d\u5b9a\u6a94\u7684\u90e8\u5206\uff1a<\/p>\n

APACHE v1.3\r\n   -----------\r\n   <IfModule mod_evasive.c>\r\n       DOSHashTableSize    3097\r\n       DOSPageCount        2\r\n       DOSSiteCount        50\r\n       DOSPageInterval     1\r\n       DOSSiteInterval     1\r\n       DOSBlockingPeriod   10\r\n   <\/IfModule><\/pre>\n
APACHE v2.0\r\n   -----------\r\n   <IfModule mod_evasive20.c>\r\n       DOSHashTableSize    3097\r\n       DOSPageCount        2\r\n       DOSSiteCount        50\r\n       DOSPageInterval     1\r\n       DOSSiteInterval     1\r\n       DOSBlockingPeriod   10\r\n   <\/IfModule><\/pre>\n

\u6839\u64da\u655d\u516c\u53f8\u7684\u5be6\u52d9\u7d93\u9a57\uff0c\u8abf\u7bc0\u4e0a\u8ff0\u7684\u53c3\u6578\uff0c\u5c0d\u65bc\u963b\u64cb\u7684\u6548\u679c\uff0c\u4e26\u6c92\u6709\u5f88\u5927\u7684\u5f71\u97ff\u3002\u4f46\u662f\uff0c\u6709\u5169\u9ede\u9700\u8981\u7279\u5225\u6ce8\u610f\uff1a
\n(1) apache\u7684keep-alive\u8981\u8a2d\u5b9a\u70batrue, \u5426\u5247\uff0cmod_evasive\u7684\u6548\u679c\u6703\u5f88\u5dee\u3002
\n(2) \u5b89\u88dd\u5b8c\u7562\u4e4b\u5f8c\uff0c\u52d9\u5fc5\u4f7f\u7528mod_evasive\u96a8\u5b89\u88dd\u5305\u9644\u7684 test.pl \u7a0b\u5f0f\uff0c\u4f86\u9a57\u8a3c\u662f\u5426mod_evasive\u88ab\u6b63\u78ba\u7684\u8a2d\u5b9a\u4e86\u3002<\/p>\n

\u9644\u8a3b\uff1a\u9632\u79a6DDoS\u662f\u5f88\u8907\u96dc\u56f0\u96e3\u7684\u6280\u8853\uff0c\u5982\u679cmod_evasive\u4f60\u7121\u6cd5\u7368\u7acb\u5b89\u88dd\uff0c\u6216\u662f\u4f60\u5b89\u88dd\u4e86mod_evasive\u9084\u662f\u7121\u6cd5\u89e3\u6c7aDDoS\u7684\u554f\u984c\uff0c\u8acb\u4f60\u53c3\u8003unethost\u7684WAF\u89e3\u6c7a\u65b9\u6848<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

mod_evasive\u662fApache\u4f3a\u670d\u5668\u7684\u4e00\u500b\u7b2c\u4e09\u65b9\u6a21\u7d44\uff0c\u53ef\u4ee5\u56de\u907fHTTP DoS\u6216DDoS\u653b\u64ca\u3002\u5b83\u5728\u8a2d\u8a08\u4e0a … \u95b1\u8b80\u5168\u6587 \u4ec0\u9ebc\u662fmod_evasive\uff1f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3],"tags":[41,42],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/160"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":8,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":580,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/160\/revisions\/580"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}