欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

linux 系统下nginx 屏蔽迅雷配置 博客分类: linuxhtml相关 nginx屏蔽迅雷linuxuser-agent 

程序员文章站 2024-03-23 16:12:34
...
新建:/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;