Cloudflare Firewall Rule: Ban Country Codes from Registration | NulledTeam UnderGround | The Best Scripts Site In The World
Resource icon

Cloudflare Firewall Rule: Ban Country Codes from Registration

Admin

Administrator
Staff member
Administrator
Registered
Joined
Aug 21, 2015
Messages
10,835
Reaction score
51,356
Points
113
Age
46
Location
Egypt
Website
www.nulledteam.com
Site Script
XenForo
Admin 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:
You don't have permission to view the code content. Please Log in or register now. Log in or register now.
Read more about this resource...
 

Admin

Administrator
Staff member
Administrator
Registered
Joined
Aug 21, 2015
Messages
10,835
Reaction score
51,356
Points
113
Age
46
Location
Egypt
Website
www.nulledteam.com
Site Script
XenForo
Admin 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. If you need help, PM me.
Read the rest of this update entry...