![]() |
Moderate New Registrations Based On IP Geographical Origin
This mod will put any new registration into moderation so you can either approve or deny based on the physical location of the IP address. If the IP is located in a country that you white list, the registration will go through as normal.
This may be different for everyone else, but on my forums, I have yet to have a Russian IP sign up for anything other than posting SPAM. This plugin has moderated them all! I hope to have time to eventually expand this to do other things. This works with 4.0.x. You MUST download the zone files from this site: http://www.ipdeny.com/ipblocks/ The free license does not allow me to include them with the product, plus it is better to download the latest files anyway. No real screenshots to show here, sorry. Changelog: 12/20/2008
Don't forget to: |
Reserved...
|
So uh, dumb question, I've got it installed....now what happens? Your readme, and description is a little vague.
|
Users who register from countries not on your white list will be moderated.. What else do you need to know?
|
Ok, I dig it. I didnt know if perhaps that within the moderation panel it would show countries of origin..stuff like that. But since, I moderate everyone, this isn't really relevant...thanks for the info.
|
Yeah, if you moderate everyone, then this won't be useful. It is more for fine tuning your moderation criteria.
|
How do you know that the account signed up is going to be a spam bot or not? Because when I look at any spam bot that has spammed viagra, computer sales, TVs etc. They truly look like a legit user until they start spamming weeks later.
|
If you analyze their IP address they will probably be from Russia or Turkey since it seems like most of the problems of the internet derives from over there. While not as effective, if you use a website like whatsmyipaddress.com and enter the IP address into the search box it will tell you an approximation of where the IP originates from.
In any case, sounds like a great idea but since I have Windows Server 2003 so it's no good for me. |
Quote:
My motivation to write this is because of one forum I run that is a local forum for a small area in NY State. It makes no sense for people from Saudi Arabia or Russia to even want an account there. At first I was just going to outright deny registrations to these countries, but figured for prudence sake, to put them in moderation just in case there was a false positive. |
Still wishing you'd write this for Windows Server 2003 also.
|
If you can find the program called "whois" for windows, then this might work with it.
|
Quote:
I don't expect that you read this... but I still need to tell you this... TAKE care on your comments !!! If you call my family scum, that same to you and your familiy is scum for me also, take a look there and do NEVER ever make such remark again to catogorize a whole country, due to some persons. ! MODS, how to accept such comment ?? Doesn't anybody look ??? I hope his comment will be deleted very soon and edit mine pls ! Thanks. |
Quote:
Meissenation did not say ALL people from these places are scum but: Quote:
The reason I made this mod was not to start some international incident, but to try and shut out these idiot spammers in any way I can. Is that offensive? Surely not nearly as offensive as waking up in the morning and checking your FAMILY ORIENTATED forum to find that some Russian IP posted about 30 threads all containing XXX rated pornography. If it was up to me, the Internet should be cut off from these places until their Governments can at least make an attempt at policing its use. |
Ok, I broke down and made a Windows compatible version. Should work on all platforms now for that matter..
|
People please cool off. Unless your family are spammers (or other unwanted internet activity), then nobody insulted your family our your fellow countrymen.
Only thing that has been posted is the observation that a lot of "scum" on the internet originates from IP addreses in those countries. Edit: In order to avoid misinterpretations we have changed the word "scum" to "problems". This should still leave the original mesage meaning the same, but avoiding words that might be understood in the wrong way. |
Quote:
Quote:
Quote:
I understand Linux can be made much more secure, but it's much easier for me to fix a Windows box than a box with an OS I'm just not familiar with. :) |
Quote:
|
Very helpful mod. For me, however, it's more helpful to create a simple list of excluded countries as I have an international membership. Most of my spammers seem to originate in Nigeria and China, with a few from Bulgaria and Russia. It's hard to eliminate Russia as I have a number of legitimate Russian users as this is a World War II site and the Soviet Union was a major combatant. In fact a very large part of my site deals with the war on the eastern front.
I've modified the code to disallow users from specified countries. It hasn't been fully tested as I haven't had any registrations yet from those countries but the changes are fairly simple and I suspect that it will work as intended. I'd be happy to share it with the developer's permission. |
Quote:
Code:
if (!in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); } Code:
if (in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); } Cheers. |
Yeah that's the basic change. I also prettied up the phrases and changed the variable "valid_countries" to "excluded_countries" just to make the code easier to understand.
Thanks again for the mod. It definitely should help. |
Great, let me know how it works out for you in a while. I am considering expanding this to something more. Would be real interested in your feedback..
|
Quote:
Not sure why that would be. Maybe a limitation of the whois function. |
APNIC is Asia Pacific, not just Australia, FYI
|
Quote:
Quote:
FYI, please read my post slowly, it's quoted here in its entirety for your convenience, and then please show me where I said any such thing. When I went to school I was taught that China was in fact in Asia, not in Australia, so give me just a bit of credit for knowing that APNIC does not refer to Australia alone. What I said was: "For non-ARIN related IP's it defaults to the location of the Regional Internet registry." Now just where is APNIC located? I'm not talking about the region it serves but where it is actually located (I even used the word "headquarters" in my post). Uhmm... hmmm... let's see. A quick look at http://www.apnic.net/info/contact/index.html will show they are pysically located in Milton, Brisbane, QLD, AUSTRALIA So Chinese IP's, and in fact all APNIC related IP's appear to be from Australia. For the same reason, all RIPE related IP's appear to come from the Netherlands. Yes, I know there are many countries served by RIPE beside the Netherlands, but it is located in Amsterdam. So if I wanted to exclude Belarus the adaptation of this modification that I wrote would fail because Belarussian IP's appear, to this modification, to be from the Netherlands, just as Chinese IP's appear to be from Australia. I tested this with multiple IP's from multiple countries for both RIPE and APNIC and the results were 100% consistent. Now have I made myself clear enough so you won't feel the need to make another drive by off topic comment? |
Has anybody tried this on 3.8?
Sorry, just saw in the first post that this should work on 3.8. I've installed so should know soon. If it works as described, this is a FANTASTIC hack. Thanks much. |
OK....I had previously not moderated new members. I installed this yesterday and this morning found my first member in the moderation que. I have the US and Canada whitelisted. I ran this IP Address through Whois and it shows to be in Texas. Why was this registrant placed into moderation? 76.210.32.55
|
i have write in the valid country : US,CA,IT
IT= italian but a new user whit this ip 213.140.16.183 was made on moderation park. |
I love what this mod is SUPPOSED to do but it's just not working for me. It is not correctly identifying the location of the IP addresses. It works for some but I have it set to not moderate users from the USA and Canada but it still puts some of them into moderation. Maybe the one that used the external whois would work better...I'm not sure but think I'll try it.
|
I've uninstalled it. Love the concept but it simply doesn't work. It keeps putting people into moderation who are within the countries that I have white listed. Will continue looking for a solution.
|
Quote:
Quote:
|
One solution might be to use the free MaxMind GeoLite Country database locally on your server and run the IP queries against that instead of Arin.net
They also have the free GeoLite City with more resolution, plus a remotely hosted Javascript version you could connect to: Both have 99.5% accuracy on a Country level, and GeoLite City has 79% on a city level. So there may be something there you can work with. |
Ok, I have rewrote this application to use zone files. You need to download these files here:
http://www.ipdeny.com/ipblocks/ (choose the all files download). Their free license prohibits me from including them, plus, you might as well get the most up to date version. |
does is work on 3.8?
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=205044" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=205044</a>
|
I have installed the mod but not sure how to upload the Country's can someone help me upload the folder inside the upload directory to my forum root.
|
Thanks...I will try this.
|
I'll start off by saying I'm not gay.
But I think I love you. //installed. 10-20 bots an hour into moderation. I love it. You have no idea how many spam preventing addons we use, and a few still trickle in. |
Thanks, this mod has saved me so much time, I really am glad it still works.
(yes, still works with 3.8).. |
Does this work with vb4.0 ?
|
Yes.. Works with 4.0.
|
All times are GMT. The time now is 05:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|