Resource icon

Unmaintained Cloudflare Firewall Rule: Ban Country Codes from Registration

Compatible XF 2.x versions
  1. 2.0
  2. 2.1
  3. 2.2
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...
You do not have permission to view the full content of this resource. Log in or register now.
Author
Ntown
Views
1,998
First release
Last update

Ratings

0.00 star(s) 0 ratings

Latest updates

  1. 1.2

    Updated the Code. Switched the order to check URI Path first. Much more efficient this way, as...
  2. 1.1

    small changes to countries and added compatibility with xf 2.2
Top Bottom