MyBB Community Forums

Full Version: Block registration from a country?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
My site gets too many registration requests from a specific country. 

I want to ban all registrations from that country.

Is there an easy way to block a specific country?

That's what I want to do- nothing else.

"easy way" means to be able to set it up by someone who isn't a "techy" type and doesn't want to be.  And I certainly don't want to pay for some service or addon to do it.
You can try this mod just be sure to  open it first in notepad and editing the the version to 1.8
https://mods.mybb.com/view/ip2location-i...ry-blocker

Thats a handy mod that simplifies everything if you install it properly...

Or You could do it in your admin panel:
1) Login your ACP
2) Users and Groups
3) Banning> IP Ban or w/e

Now to enter a range of IP to be banned there,do this:

Suppose the IP is 117.63.***.*** so if you wanna ban that range,what you would do is in the IP ban range enter something like this:

Code:
117.63.*.*

Did you set up your stop forum spam and stiffen your log in with a recaptcha or captcha and security question?
Here's what I did;

1- Downloaded the file- IP2LOCATION-LITE-DB1.IPV6.BIN
2- Uploaded only that file to my site at /Forum/inc/plugins

The IP2Location IP-Country Blocker doesn't appear in my Plugin list.

How do I fix that?

Thanks
You also have to upload
ip2location.php and ip2location/ip2location.class.php to the plugins directory.
(2016-10-20, 01:28 PM)Neeeeeeeeeel.- Wrote: [ -> ]You also have to upload
ip2location.php and ip2location/ip2location.class.php to the plugins directory.

Yes I neglected to mention that, thank you Neeeeeeeeeel
I can't find any .php files in the bunch I downloaded. All I get is that BIN thing.
The instructions on the site will have links to the necessary .php files
[Image: m7oBYvj.png]
There's always a catch- "This plugin is incompatible with MyBB 1.8.6"

I've read the upgrade instructions and the difficulty for someone of my skill to even try the upgrade is what has me still at 1.8.6. There must be an easier way.

Anyway, thanks, fellas, for the help.

Tornado Mitr

I believe you can do it with CloudFlare.
Pages: 1 2 3