Cloudflare Firewall Rule: Ban Country Codes from Registration

XenForo Cloudflare Firewall Rule: Ban Country Codes from Registration

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
XenForo submitted a new resource:

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

c8667f92246a2.jpg


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 but you may also choose to CHALLENGE....

Read more about this resource...
 

XenForo

Administrative
  • Thread starter
  • Admin
  • #2
XenForo 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...
 
Back
Top Bottom