We’re excited to have you join us! By registering, you’ll gain access to exclusive content, including leaked files and nulled software. Engage with our community, share your insights, and stay updated on the latest releases.

Get ready to explore and enjoy all the benefits of being a member, and feel free to connect with others through discussions and private messages.

Warning: Please do not create multiple accounts. We have a system in place that detects multiple account registrations, and any violations may result in a permanent ban.

Sign Up Now and Start Exploring!
  • License distribution for the
    Ibo 3.9 app+ panel with 17 themes to choose
    is now available for free, we are decrypting it now
    Only for VIP memberships

XenForo Cloudflare Firewall Rule: Ban Country Codes from Registration

El Bana

Active member
Registered
Joined
Jul 25, 2024
Messages
142
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.

Code:
Please, Log in or Register to view codes content!

Deploy

You can then go back to the rule and edit the countries if you want. Below are the countries included in the above code (including Tor).

The above rule is good for blocking a large number of countries but leaving most of the world open. Conversely, If your forum is only open to one (or a few) countries, simply change the rule to: Country is not in [choose country (or countries) to allow from dropdown].

Also, you may choose to make the URI Path more restrictive, ie. /forums/register/
 
Back
Top