Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Moderate New Registrations Based On IP Geographical Origin Details »»
Moderate New Registrations Based On IP Geographical Origin
Version: 3.00, by Jafo232 Jafo232 is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.8.1 Rating:
Released: 02-10-2009 Last Update: Never Installs: 168
Uses Plugins
Additional Files  
No support by the author.

Original 3.7 mod here.

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.

You MUST download the zone files from this site:

http://www.ipdeny.com/ipblocks/ (download the "all files" file)

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
  • Coded the routine in, instead of using external whois program.
  • Now compatible with Windows
  • (39 download of 1.0) (3.7.x)
2/11/2009
  • 77 downloads at this point (3.7.x)
  • Rewrote application to use zone files rather than relying on Arin
To upgrade, READ THE README, and re-install product (select overwrite).

Don't forget to:

Download Now

File Type: zip countrymod3.0.zip (5.1 KB, 700 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-13-2009, 11:11 AM
graham_w graham_w is offline
 
Join Date: Apr 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the mod. I reversed it so the list would be a black list instead of a white list and seems to do whats required. Thanks again.
Reply With Quote
  #33  
Old 03-23-2009, 11:30 PM
intelgio2 intelgio2 is offline
 
Join Date: Jan 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed the app and get the following message after trying to register. This comes up after entering all of the information on the registration screen. Any ideas?

"Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 52 bytes) in ...whois.php on line 35"
Reply With Quote
  #34  
Old 03-27-2009, 01:20 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like the IP lists are too much for the small setting you have for max memory size in your PHP.ini file.
Reply With Quote
  #35  
Old 04-11-2009, 02:15 AM
skwestle skwestle is offline
 
Join Date: Mar 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need help to upload the folder inside the upload directory to my forum root. Can anyone help me with this?
Reply With Quote
  #36  
Old 04-16-2009, 04:53 PM
Cyburbia's Avatar
Cyburbia Cyburbia is offline
 
Join Date: Feb 2002
Location: Ithaca, New York USA
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a fantastic mod! This cold be the key to cutting my htaccess file down by 75% or more.

However, there's one issue. On my board, there's a few countries where a small majority, but not all new registrants, are spammers; India, the Philippines, and China. (Yes, I get legit users from China, but about 80% are spammers.) Right now, using .htaccess, I direct the bulk of IP blocks from those countries into a page like this:

http://www.cyburbia.org/notice/forum_registration_india

Quote:
A disproportionately large number of those that have posted spam to the Cyburbia Forums register from IP blocks in India. Unfortunately, most if not all users that have previously registered from this IP block have been forum spammers and "black hat" SEO (search engine optimization) service providers.

We welcome new users from India, but we want to make sure they are not spammers. If you intend to be a constructive and active participant of the Cyburbia Forums, have a genuine interest in urban/town planning (planning student, or employed in planning or an allied profession such as architecture), please send email to cyburbia (at) cyburbia (dot) org with the following information:

* Your real name.
* Your desired Forums username.
* Your location (city or municipality, and state or union territory).
* A sentence or two about why you are interested in joining the Cyburbia Forums.
We create accounts by hand for registrants that look legit. (We've actually had a couple of people write to messages like "I would very muchly please like to promote web site SEO kindly do the needful and approve please", but according to our logs, thousands of others do'nt bother.)

It would be nice to have something where some countries are blocked from registering entirely (Former Soviet republics, Nigeria, Pakistan, Satellite IPs, Nigeria, Nigeria, Nigeria, Nigeria and Nigeria), while others can register, but they have to complete a few sentences about why they want to register. If they look legit, approve and send a form email. If not, deny.
Reply With Quote
  #37  
Old 04-16-2009, 08:47 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^ That's a fine idea.

Quote:
Originally Posted by graham_w View Post
Thanks for the mod. I reversed it so the list would be a black list instead of a white list and seems to do whats required. Thanks again.
I've also reversed it. It would be preferable to have this as the default. It makes a much shorter list to type into the options.
Reply With Quote
  #38  
Old 05-09-2009, 06:58 PM
Daryn Daryn is offline
 
Join Date: Nov 2008
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a nice mod, I've been getting a lot of crap users from Russia mostly. So this will probably help out alot. Just a couple questions though:

1. For this mod to take effect what settings do I need to have on in vB?
2. For a future version, could you put in the option to make it a white/blacklist?
3. Instead of having to type in the text string for country codes, could you have the mod parse the zones and display a list of them with check boxes?

Thanks.
Reply With Quote
  #39  
Old 05-09-2009, 07:21 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Daryn View Post
2. For a future version, could you put in the option to make it a white/blacklist?
You can already do that: See https://vborg.vbsupport.ru/showthrea...20#post1767120

Quote:
Originally Posted by Daryn View Post
Instead of having to type in the text string for country codes, could you have the mod parse the zones and display a list of them with check boxes?
If you use the blacklist version, all you have to do is type in a few country codes. Listing them all in a checkbox list or drop-down would be a huge list.
Reply With Quote
  #40  
Old 05-09-2009, 07:51 PM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i really hate russia for historical reasons but to say that every russian that comes to your site is a spammer that is really hazardous

there are many us spammers, actually usa is the "best" in the world when it comes to spam

anyway a mod for blocking spammers by ip is a very good

10x

i fear that the database from http://www.ipdeny.com/ipblocks could be somehow false - positive in some cases because for one bad user you could block 100 good ones if they use the same ip
Reply With Quote
  #41  
Old 05-09-2009, 08:13 PM
Daryn Daryn is offline
 
Join Date: Nov 2008
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
You can already do that: See https://vborg.vbsupport.ru/showthrea...20#post1767120



If you use the blacklist version, all you have to do is type in a few country codes. Listing them all in a checkbox list or drop-down would be a huge list.
You can already do that, but you have to modify the mod to do it, which means you have to make that modification every time you update it. If something is needed by a lot of people it should be a setting and not an edit. Not to sound like a jerk, but it's the most basic in usability theory.

And a checkbox list would be a lot easier than having to open up an external text file, search for the country, take down the code, go back to the ACP, put in the code, go back to the text file, etc...

At the very least, having a link in the ACP to an alphabetical list of the countries and codes would make that easier.

In case you're wondering, my area of expertise is usability and accessibility, it's what I do a lot of work on.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05757 seconds
  • Memory Usage 2,336KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete