XenForo Tutorials

Registration Country Ban via Cloudflare

Submitted by Yondu, , Thread ID: 197749

12-02-2021, 08:58 PM
#1
Visit: Cloudflare | Web Performance & Security
Your XenForo Domain > Firewall Menu > Firewall Rules > Create a Firewall rule

Rule name: Registration Country Ban
Expression Preview > Edit expression
Modify the country codes/domain:

Code:
ip.geoip.country in {"BD" "BR" "CN" "KP" "KR" "PK" "RU" "UA" "VN" "TH" "IR" "BG" "DE"} and http.request.full_uri contains "https://domain.com/register/"

Then: Block
Hit Deploy, done.

[Image: yWy5gxM.png]
[Image: wsUuw16j6oyxLLRnnK.gif]

Users browsing this thread: 2 Guest(s)