Skip to content

Instantly share code, notes, and snippets.

View ricky9w's full-sized avatar
🏠
Working from home

Richard Wang ricky9w

🏠
Working from home
View GitHub Profile
@ricky9w
ricky9w / waf-block-chinese-browsers.lua
Created April 24, 2025 17:09
Blacklist of user agent strings for Cloudflare WAF targeting Chinese browsers/apps/devices/spiders
(http.user_agent contains "360")
or (http.user_agent contains "360SE")
or (http.user_agent contains "360EE")
or (http.user_agent contains "360AI")
or (http.user_agent contains "360ENT")
or (http.user_agent contains "QHBrowser")
or (http.user_agent contains "QihooBrowser")
or (http.user_agent contains "UCBrowser")
or (http.user_agent contains "UCWEB")
or (http.user_agent contains "UBrowser")