XenForo Tutorials

Registration Country Ban via Cloudflare

Submitted by Yondu, , Thread ID: 197749

Yondu
Marry Poppins Y'all
Administrators
Level:
35
Reputation:
190
Posts:
1.52K
Likes:
329
Credits:
3.5K
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]

RE: Registration Country Ban via Cloudflare

ArcadiaGuild
Member
Level:
11
Reputation:
3
Posts:
152
Likes:
6
Credits:
245
15-07-2021, 08:32 PM
#2
Sweet thanks for sharing this, I will have to try it out tonight

Users browsing this thread: 1 Guest(s)