技术解析

nginx 定向 http_user_agent 怎么无效啊
0
2021-05-26 17:33:08
idczone

location / {
if ($http_user_agent ~* "Windows NT 5.1") {

retur美国服务器n 444;

            }
                }

不知道刚刚哪弄错了现在又工作了
location / {
if ($http_user_agent ~* "Windows NT 5.2") {
return 444;
}
}

无语了 把5.1 xp搞错

hehe

242.119.21.11 - - [09/Jul/2015:12:01:20 -0400] "GET /bxiwn.gif HTTP/1.1" 444 0 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; );"
244.229.10.82 - - [09/Jul/2015:12:01:21 -0400] "GET /nrgnpjei.htm HTTP/1.1" 444 0 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; );"

数据地带为您的网站提供全球顶级IDC资源