MyBB Community Forums
Block registration from a country? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: Security Management and Support (https://community.mybb.com/forum-179.html)
+--- Thread: Block registration from a country? (/thread-205207.html)

Pages: 1 2 3


Block registration from a country? - PDA1 - 2016-10-19

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.


RE: Block registration from a country? - Starnova - 2016-10-19

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-ip-country-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?


RE: Block registration from a country? - PDA1 - 2016-10-20

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


RE: Block registration from a country? - Neeeeeeeeeel.- - 2016-10-20

You also have to upload
ip2location.php and ip2location/ip2location.class.php to the plugins directory.


RE: Block registration from a country? - Starnova - 2016-10-20

(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


RE: Block registration from a country? - PDA1 - 2016-10-20

I can't find any .php files in the bunch I downloaded. All I get is that BIN thing.


RE: Block registration from a country? - Starnova - 2016-10-21

The instructions on the site will have links to the necessary .php files


RE: Block registration from a country? - Neeeeeeeeeel.- - 2016-10-21

[Image: m7oBYvj.png]


RE: Block registration from a country? - PDA1 - 2016-10-22

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.


RE: Block registration from a country? - Tornado Mitr - 2016-10-22

I believe you can do it with CloudFlare.