• 本帖最后由 360安全卫士 于 2012-11-12 18:13 编辑 *

演示:http://42.121.80.131/a.rar
http://42.121.80.131/lazyzhu.html- server {

  • server_name f4ck;
  • location /lazyzhu.html{
  • set $x_key "sdfdfhgsd\#\$\@\@";
  • set $x_mjj $x_key$remote_addr$useragent$year$month$day$hour;
  • set_md5 $x_x_cookie $x_mjj;
  • more_set_headers "Content-Type:text/html; charset=UTF-8";
  • more_set_headers "Set-Cookie: crypted=$x_x_cookie;"
  • echo "he is a mjj";
  • }
  • location /a.rar {
  • expires 8640000; #这里可以控制缓存头,节省服务器开销。
  • set $x_key "sdfdfhgsd\#\$\@\@";
  • set $x_mjj $x_key$remote_addr$useragent$year$month$day$hour;
  • set_md5 $x_x_cookie $x_mjj;
  • more_set_headers "Content-Type:text/html; charset=UTF-8";
  • if ( $x_x_cookie != $cookie_crypted ) {
  • echo "Your are a mjj!!!";
  • #未加密COOKIE直接请求时会输出
  • }
  • if ( $x_x_cookie = $cookie_crypted ) {
  • echo "You have jj.";
  • }
  • - }
  • }复制代码