{"id":587,"date":"2008-10-07T09:10:55","date_gmt":"2008-10-07T01:10:55","guid":{"rendered":"http:\/\/fdream.net\/blog\/article\/587.aspx"},"modified":"2008-10-07T09:10:56","modified_gmt":"2008-10-07T01:10:56","slug":"%e5%8f%af%e6%81%b6%e7%9a%84Spam%e6%9c%ba%e5%99%a8%e4%ba%ba","status":"publish","type":"post","link":"https:\/\/fdream.net\/blog\/article\/587","title":{"rendered":"\u53ef\u6076\u7684Spam\u673a\u5668\u4eba"},"content":{"rendered":"<p>\u4e0b\u9762\u662f\u51e0\u6761IIS\u7684\u8bbf\u95ee\u65e5\u5fd7\uff1a<\/p>\n<blockquote>\n<p>23:59:29 GET \/blog\/include\/validatecode.asp &#8211; 80 <br \/>&#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 200 0 3<\/p>\n<p>23:59:29 POST \/blog\/blogcomm.asp action=postcomm 80 <br \/>&#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 200 0 2<\/p>\n<p>23:59:29 GET \/blog\/blogview.asp logid=304 80 <br \/>&#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 301 0 0<\/p>\n<p>23:59:29 GET \/blog\/article\/304.aspx &#8211; 80 <br \/>&#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 302 0 0<\/p>\n<p>23:59:29 GET \/blog\/article\/refused.html &#8211; 80 <br \/>&#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 200 0 3<\/p>\n<p>23:59:33 POST \/blog\/trackback.asp tbid=140&#038;CP=GBK 80 <br \/>&#8211; 222.69.238.216 Mozilla\/3.0+(compatible;+Indy+Library) 200 0 2<\/p>\n<\/blockquote>\n<p>Indy Library\u6700\u521d\u662f\u4e00\u4e2a\u5173\u4e8e\u7f51\u7edc\u64cd\u4f5c\u7684\u5f00\u6e90\u7a0b\u5e8f\u5e93\uff0c\u5230\u4e86\u56fd\u5185\u5c31\u5927\u91cf\u88ab\u6ee5\u7528\u5230spam bots\uff0c\u800c\u4e14\u8fd8\u80fd\u968f\u610f\u66f4\u6362IP\uff08\u4e5f\u8bb8\u662f\u591a\u4e2aspam bot\uff0c\u4f46\u662f\u4eceIP\u6570\u91cf\u6765\u770b\u5e76\u4e0d\u50cf\uff09\uff08<a href=\"http:\/\/www.allwiki.com\/wiki\/Indy_Library\" target=\"_blank\" title=\"\u8fd9\u91cc\u6709\u66f4\u591a\u5173\u4e8eIndy Library\u7684\u4fe1\u606f\">\u8fd9\u91cc\u6709\u66f4\u591a\u5173\u4e8eIndy Library\u7684\u4fe1\u606f<\/a>\uff09\u3002\u5f88\u65e9\u5c31\u53d1\u73b0\u8fd9\u4e2a\u53ef\u6076\u7684\u673a\u5668\u4eba\u4e86\uff0c\u4e8e\u662f\u5728Global.asax\u4e2dBeginRequest\u7684\u65f6\u5019\u5c31\u76f4\u63a5\u4e3a\u5176\u91cd\u5b9a\u5411\u5230\u4e86refused.html\uff1a<\/p>\n<p><pre lang=\"all\">\nstring agent = HttpContext.Current.Request.UserAgent;\nif (String.IsNullOrEmpty(agent) || agent.IndexOf(&quot;Indy Library&quot;) &gt; -1)\n{\n    Response.Redirect(&quot;refused.html&quot;);\n}\n<\/pre>\n<\/p>\n<p>\u53ef\u60dc\u662f\u8fd9\u662f\u4e00\u4e2a302\u8df3\u8f6c\uff0c\u8df3\u8f6c\u540e\u8fd8\u662f\u4f1a\u5f97\u5230\u6210\u529f\u54cd\u5e94\uff08200\uff09\uff0c\u800cIIS\u672c\u8eab\u7684404\u8fd4\u56de\u7684\u9519\u8bef\u9875\u9762\u7684\u72b6\u6001\u5c45\u7136\u4e5f\u662f200\uff08\u90a3\u51e0\u4e2aasp\u6587\u4ef6\u6839\u672c\u5c31\u4e0d\u5b58\u5728\u4e86\uff09\u3002\u56e0\u4e3a\u8fd4\u56de\u7684\u8fd9\u51e0\u4e2a\u72b6\u6001\u9519\u8bef\uff0c\u4e8e\u662f\u8fd9\u4e2a\u673a\u5668\u4eba\u8001\u662f\u4ee5\u4e3a\u81ea\u5df1\u5728\u6b63\u5e38\u5de5\u4f5c\uff0c\u800c\u90a3\u4e2a\u4f7f\u7528\u8fd9\u4e2a\u673a\u5668\u4eba\u7684\u50bb\u903c\u4e5f\u4e0d\u770b\u4e00\u4e0b\u7ee7\u7eed\u6d6a\u8d39\u8001\u5b50\u7684\u670d\u52a1\u5668\u8d44\u6e90\uff0c\u5c3d\u7ba1\u4ed6\u4e00\u6761spam\u90fd\u6ca1\u6709\u53d1\u6210\u529f\uff01<\/p>\n<p>\u53e6\u5916\uff0c\u8fd9\u4e2a\u673a\u5668\u4eba\u4e2d\u95f4\u6709\u8bf7\u6c42\u201cvalidatecode.asp\u201d\u8fd9\u4e2a\u6587\u4ef6\uff0c\u770b\u6765\u4ed6\u4eec\u8fd8\u662f\u6709\u7834\u89e3\u8fd9\u4e2a\u7b80\u5355\u7684\u9a8c\u8bc1\u7801\u7684\u80fd\u529b\uff0c\u4ee5\u524d\u4e5f\u786e\u5b9e\u6210\u529f\u5730\u53d1\u4e86\u4e0d\u5c11\u5783\u573e\u8bc4\u8bba\uff0c\u6211\u5f88\u5947\u602a\u7684\u662f\u4ed6\u4eec\u73b0\u5728\u8bf7\u6c42\u7684\u8fd9\u4e2a\u9875\u9762\u5df2\u7ecf\u662f\u201crefused.html\u201d\u4e86\uff0c\u4ed6\u4eec\u8fd8\u80fd\u4f5c\u4e3a\u56fe\u7247\u8bc6\u522b\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u662f\u51e0\u6761IIS\u7684\u8bbf\u95ee\u65e5\u5fd7\uff1a 23:59:29 GET \/blog\/include\/validatecode.asp &#8211; 80 &#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 200 0 3 23:59:29 POST \/blog\/blogcomm.asp action=postcomm 80 &#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 200 0 2 23:59:29 GET \/blog\/blogview.asp logid=304 80 &#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 301 0 0 23:59:29 GET \/blog\/article\/304.aspx &#8211; 80 &#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 302 0 0 23:59:29 GET \/blog\/article\/refused.html &#8211; 80 &#8211; 219.134.121.206 Mozilla\/3.0+(compatible;+Indy+Library) 200 0 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[351],"class_list":["post-587","post","type-post","status-publish","format-standard","hentry","category-coding","tag-spam"],"views":7629,"_links":{"self":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":0,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"wp:attachment":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}