网上找的这样写 不起作用!

  • if ($http_user_agent ~ ^$) {
  • return 503;
  • }
  • if ($http_user_agent ~* "Mozilla/4.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.1;\ SV1;\ .NET\ CLR\ 1.1.4322;\ .NET\ CLR\ 2.0.50727\)") {
  • return 503;
  • }复制代码求大神 要怎么写。。。。。。。。

迅雷的user agent

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)