网站怎么屏蔽所有国产浏览器?
如果能在waf或者nginx层面屏蔽更好了,有没有相关项目的?写个lua脚本的UA判断就好了
https://gist.github.com/0polar/d721715f987247db7194c917de46601e
或者直接nginx判断
if ($http_user_agent ~* "sogou|theworld|qiyu|green|qq|qqbrowser|tt|liebao|lbbrowser|taobao|uc|mi|xiaomi|baidu|360|360SE|360EE|2345Explorer|maxthon|yandex|micromessenger|wechat|weibo|douban|suning|iqiyi|alipay") {
return 403;
} 大人,此事必有蹊跷!
页:
[1]