Skip to content

Instantly share code, notes, and snippets.

View chinatimeline's full-sized avatar

中国时间线 chinatimeline

View GitHub Profile
@0polar
0polar / cloudflare_firewall_rule.lua
Last active March 25, 2024 06:08
Black list for user agent of Chinese web browsers, quick block all access from Chinese web browsers / 国产浏览器UA黑名单,一键屏蔽所有国产浏览器访问
(http.user_agent contains "QQ/")
or (http.user_agent contains "MicroMessenger")
or (http.user_agent contains "TaoBrowser")
or (http.user_agent contains "Redmi")
or (http.user_agent contains "XiaoMi")
or (http.user_agent contains "MiuiBrowser")
or (http.user_agent contains "HUAWEI")
or (http.user_agent contains "HONOR")
or (http.user_agent contains "OPPO")