{"id":682,"date":"2011-01-28T10:12:03","date_gmt":"2011-01-28T02:12:03","guid":{"rendered":""},"modified":"2014-03-11T22:36:19","modified_gmt":"2014-03-11T14:36:19","slug":"%e9%98%b2%e9%87%87%e9%9b%86%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2011\/01\/28\/682.htm","title":{"rendered":"\u9632\u91c7\u96c6\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>&lt;% <br \/>\n&#8216;\u8bbe\u7f6e\u91cd\u65b0\u9a8c\u8bc1\u65f6\u95f4\uff0c\u5355\u4f4d\u5206\u949f\u3002\u60a8\u53ef\u4ee5\u628a\u8fd9\u4e2a\u62ff\u5230global.asa\u4e2d\u4f7f\u7528 <br \/>\napplication( &quot;time_belimit_width &quot;)=3<\/p>\n<p>\n&#8216;\u9a8c\u8bc1\u8bbf\u95ee\u8005\u7684ip\u662f\u5426\u5728\u5371\u9669ip\u5e93\u54cd <br \/>\nif instr( &quot;58.61.164.140,58.61.164.138,58.61.164.139,58.61.164.141,58.61.164.142,219.135.238.224,122.0.194.122,58.61.90.0,221.218.239.53,220.181.19.164,219.135.238.224,219.235.240.136,219.235.240.136,202.106.182.157,61.140.123.146, &quot;,request.ServerVariables( &quot;REMOTE_ADDR &quot;)&amp; &quot;, &quot;) then<\/p>\n<p>\n&nbsp;<\/p>\n<p>&#8216;\u5982\u679c\u8bb0\u5f55\u8d77\u59cb\u77ac\u95f4\u7684cookie time_belimit_start\u4e3a\u7a7a\uff0c\u5148\u7f6e\u503c\uff0c\u8fd9\u662f\u4e3a\u4e86\u4e0b\u9762\u80fd\u6b63\u5e38\u4f7f\u7528 <br \/>\nif request.cookies( &quot;time_belimit_start &quot;)= &quot; &quot; then <br \/>\nresponse.cookies( &quot;time_belimit_start &quot;)=(now()-application( &quot;time_belimit_width &quot;)*0.001) <br \/>\nend if<\/p>\n<p>\n&nbsp;<\/p>\n<p>&#8216;\u5982\u679c\u8bb0\u5f55\u7b54\u6848\u7684cookie limitresult\u4e3awrong\u6216\u8005\u73b0\u5728\u5df2\u7ecf\u8d85\u8fc7\u4e86\u524d\u9762\u5b9a\u4e49\u7684\u65f6\u957f\uff0c\u624d\u53bb\u6267\u884c\u7b97\u5f0f\u9a8c\u8bc1 <br \/>\nif request.cookies( &quot;limitresult &quot;)= &quot;wrong &quot; or abs(minute(now())-minute(FormatDateTime(request.cookies( &quot;time_belimit_start &quot;))))&gt; application( &quot;time_belimit_width &quot;) then <\/p>\n<p>&#8216;\u8bbe\u7f6ecookie limitresult\u7684\u521d\u59cb\u503c\u4e3awrong <br \/>\nresponse.cookies( &quot;limitresult &quot;)= &quot;wrong &quot; <br \/>\n&#8216;\u8bbe\u7f6e\u8d77\u59cb\u65f6\u95f4\u4e3a\u73b0\u5728 <br \/>\nresponse.cookies( &quot;time_belimit_start &quot;)=now()<\/p>\n<p>\n&nbsp;<\/p>\n<p>\n&#8216;\u53d6\u5f97\u968f\u673a\u6570\u548c\u968f\u673a\u6570\u7684\u548c <br \/>\nrandomize <br \/>\nbelimit_first=Int((9 &#8211; 0 + 1) * Rnd + 1) <br \/>\nrandomize <br \/>\nbelimit_second=Int((9 &#8211; 0 + 1) * Rnd + 1) <br \/>\nbelimit_result=belimit_first+belimit_second <\/p>\n<p>&#8216;\u63d0\u793a\u9a8c\u8bc1\u4fe1\u606f <br \/>\nword_belimit_1= &quot;\u5bf9\u4e0d\u8d77\uff0c\u60a8\u6240\u5728ip\u6bb5\u66fe\u7ecf\u5b58\u5728\u6076\u610f\u6293\u53d6\u6211\u4eec\u7f51\u9875\u7684\u884c\u4e3a\uff0c\u6211\u4eec\u4e0d\u5f97\u5df2\u91c7\u53d6\u6388\u6743\u8bbf\u95ee\u5236. &quot;&amp;_ <br \/>\n&quot;\u8bf7\u6839\u636e\u63d0\u793a\u56de\u7b54\u95ee\u9898\uff0c\u7ed3\u679c\u6b63\u786e\uff0c\u60a8\u53ef\u4ee5\u5728 &quot;&amp;application( &quot;time_belimit_width &quot;)&amp; &quot;\u5206\u949f\u5185\u6b63\u5e38\u8bbf\u95ee\uff0c\u7ed3\u679c\u9519\u8bef\uff0c\u60a8\u5c06\u65e0\u6cd5\u6b63\u786e\u8bbf\u95ee\u3002 &quot; <br \/>\nresponse.write(word_belimit_1 &amp; &quot;\u60a8\u8bbf\u95ee\u7684\u5f00\u59cb\u65f6\u95f4\u662f\uff1a &quot;&amp;request.cookies( &quot;time_belimit_start &quot;)) <\/p>\n<p>&#8216;\u8bbe\u5b9a\u8868\u8fbe\u5f0f <br \/>\nword_belimit= &quot;\u8bf7\u95ee &quot;&amp;belimit_first&amp; &quot;+ &quot;&amp;belimit_second&amp; &quot;= &quot; <\/p>\n<p>\nresponse.write( &quot; &lt;script language= &#8216;javascript &#8216;&gt; &quot;) <\/p>\n<p>response.write( &quot;var word_in; &quot;) <br \/>\nresponse.write( &quot;word_in=prompt( &#8216; &quot; &amp; word_belimit &amp; &quot; &#8216;); &quot;) <br \/>\nresponse.write( &quot;document.write(word_in); &quot;) <br \/>\nresponse.write( &quot; if(word_in!= &quot;&amp;belimit_result&amp; &quot;) &quot;) <br \/>\nresponse.write( &quot; { &quot;) <br \/>\nresponse.write( &quot; document.write( &#8216;\u56de\u7b54\u9519\u8bef\uff0c\u8c22\u8c22\u4f7f\u7528\u3002 &#8216;); &quot;) <\/p>\n<p>&#8216;\u7b54\u6848\u9519\u8bef\uff0c\u8f6c\u5411\u767e\u5ea6\u641c\u7d22 <br \/>\nresponse.write( &quot; document.location.href= &#8216;http:\/\/www.baidu.com\/s?wd=%C3%BF%C8%D5%C8%CB%B2%C5%CD%F8&amp;cl=3 &#8216;; &quot;) <br \/>\nresponse.write( &quot; } &quot;) <br \/>\nresponse.write( &quot; else &quot;) <br \/>\nresponse.write( &quot; { &quot;)<\/p>\n<p>\n&nbsp;<\/p>\n<p>&#8216;\u7b54\u6848\u6b63\u786e\uff0c\u8bbe\u7f6ecookie limitresult\u4e3a&ldquo;success&rdquo; <br \/>\nresponse.write( &quot; document.cookie= &#8216;limitresult=success &#8216;; &quot;) <br \/>\nresponse.write( &quot; } &quot;) <\/p>\n<p>response.write( &quot; &lt;\/script&gt; &quot;) <\/p>\n<p>end if<\/p>\n<p>\n&nbsp;<\/p>\n<p>end if<\/p>\n<p>\n&nbsp;<\/p>\n<p>\n%&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;% &#8216;\u8bbe\u7f6e\u91cd\u65b0\u9a8c\u8bc1\u65f6\u95f4\uff0c\u5355\u4f4d\u5206\u949f\u3002\u60a8\u53ef\u4ee5\u628a\u8fd9\u4e2a\u62ff\u5230global.asa\u4e2d\u4f7f\u7528 application( &quot;time_belimit_width &quot;)=3 &#8216;\u9a8c\u8bc1\u8bbf\u95ee\u8005\u7684ip\u662f\u5426\u5728\u5371\u9669ip\u5e93&#8230;<\/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":[],"topic":[],"class_list":["post-682","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=682"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/682\/revisions"}],"predecessor-version":[{"id":66523,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/682\/revisions\/66523"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=682"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=682"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}