toxic

备忘录

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年9月18日

摘要: /** * 将类似 \x30\x31\x32\x33\ 这类字符转换成 10进制的字符串 * 过程: 以上为例 30,31,32,33 都是16进制 * 将他们先转为10进制然后再用ascii码来换成字符 * 再连接起来就是结果 * @param $x16 * @return null|string */function ascii16toStr($x16){ if(!is_string($x16))return null; $charlist = explode('\x',$x16); $str = array(); foreach($charlist as $cha... 阅读全文
posted @ 2013-09-18 16:29 toxic 阅读(3332) 评论(0) 推荐(0) 编辑

摘要: 经常有一些垃圾爬虫,完全不管你受得了受不了,完全不管你的 robots.txt ,拼命的爬你的网站,用下面方面可以帮这帮垃圾干掉。location / { root /home/www/; if ($http_user_agent ~* "qihoobot") { return 403; } #...}然后重启 nginxkill -HUP `cat logs/nginx.pid` 或者 killall -s HUP nginx可以用 curl 测试一下curl -I -A "qihoobot" localhost如果返回 403 就正常了。向一切垃圾爬 阅读全文
posted @ 2013-09-18 14:22 toxic 阅读(306) 评论(0) 推荐(0) 编辑

摘要: CorePHP Version5.3.5DirectiveLocal ValueMaster Valueallow_call_time_pass_referenceOffOffallow_url_fopenOffOffallow_url_includeOffOffalways_populate_raw_post_dataOffOffarg_separator.input&&arg_separator.output&&asp_tagsOffOffauto_append_fileno valueno valueauto_globals_jitOnOnauto_pre 阅读全文
posted @ 2013-09-18 10:27 toxic 阅读(856) 评论(0) 推荐(0) 编辑