linux 系统下nginx 屏蔽迅雷配置

新建:/etc/nginx/agent.conf
添加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 404; }
到agent.conf文件
在nginx.conf 文件中引入include agent.conf;

猜你喜欢

转载自chen498402552-163-com.iteye.com/blog/1147672