Resource icon

XF 2 Tip Cloudflare Firewall Rule: Ban Country Codes from Registration

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,141
Points
823

Reputation:

ENXF NET submitted a new resource:

Cloudflare Firewall Rule: Ban Country Codes from Registration - Quickly add a Cloudflare Firewall Rule to block registration from specific countries.

Quickly add a Cloudflare Firewall Rule to block registration from specified countries.

Go to Cloudflare > Firewall > Firewall Rules > Create a firewall rule
Look for small text link as you scroll down to Edit expression

Paste the following rule, making sure to edit the registration URLs to be correct for your installation.

The action is Block.
Code:
(ip.geoip.country in {"AF" "AL" "DZ" "AO" "AM" "AZ" "BD" "BJ" "BY" "BA" "BN" "KH" "CM" "BI" "CF" "TD" "CN" "CG" "CD" "DJ" "GQ"...

Read more about this resource...
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,141
Points
823

Reputation:

I will update it after I use my friend's laptop
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,141
Points
823

Reputation:

ENXF NET updated Cloudflare Firewall Rule: Ban Country Codes from Registration with a new update entry:

1.2

Updated the Code.

Switched the order to check URI Path first. Much more efficient this way, as all requests not going to "register" URL now don't have to go through Country Code check. Also added more countries.

Important: if your forum is 99% from the US or some other small set of countries, change the operator and include those countries only. I

Read the rest of this update entry...
 
Top