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

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

Category: Administrative and Maintenance Tools - Version: 4.0.0 Rating:
Released: 12-26-2009 Last Update: Never Installs: 211
Uses Plugins
Additional Files  
No support by the author.

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

Don't forget to:


Developed by a Lampwright!

Download Now

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
alfanexus, Insta-Gator

Comments
  #52  
Old 07-12-2010, 05:43 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
if (!in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); }
To:

Code:
if (in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); }
There, you now have a blacklist..
Reply With Quote
  #53  
Old 07-12-2010, 06:16 PM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i amde the change and it worked perfectly. Thanks for that.
Reply With Quote
  #54  
Old 07-23-2010, 04:07 PM
pjcnlv pjcnlv is offline
 
Join Date: Jul 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am seeing exactly the same with no info why in the logs.

Mod is disabled for now.

Quote:
Originally Posted by The_Hawk View Post
Seems new registrations aren't happening anymore with users getting a blank screen on this page after filling in all the registration info and hitting OK:

http://www.vwwatercooled.org.au/regi...p?do=addmember

I'm sure this mod WAS working fine with 4.0.2 PL4 but has since given up the ghost.

As first I thought it was a vBulletin problem so I upgraded to 4.0.3, still no working. I then through it was the vbSEO I installed last week (3.0.5 RC3) so I uninstalled that, still no dice. Then I turned off the country mod and BAM, users can register again.

Re-installed vbSEO, still working.
Uninstalled Country Mod (rather than just disabled) - still working.
Re Installed Country Mod - Not working.
I have re-uploaded the zone files, I have re-uploaded the mod files - still not working
Disabled country mod - working again.

Is there a common fault here or is it just something I have done wrong?

(on a side note all of this DID happen on or about when I install vbSEO so I'm still thinking that's the problem, although technically by completely uninstalling it should have solved the problem... but it didn't)
Reply With Quote
  #55  
Old 07-23-2010, 05:08 PM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine works fine on 4.0.3
Reply With Quote
  #56  
Old 07-23-2010, 09:17 PM
The_Hawk The_Hawk is offline
 
Join Date: Aug 2009
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pjcnlv View Post
I am seeing exactly the same with no info why in the logs.

Mod is disabled for now.
As below, my problem was showing in the logs and was a memory out issue, still seems to be going well, no issues since more RAM was allocated

Quote:
Originally Posted by Jafo232 View Post
Your memory_limit setting in your php.ini file is rather low (32 Megabytes). If you bump that up and restart apache, the issue will most likely go away. I would try 64M.
Quote:
Originally Posted by The_Hawk View Post
Many thanks, that did the trick and it all seems to be working under 4.0.3 PL1 here now
Reply With Quote
  #57  
Old 11-09-2010, 03:45 PM
amorosso amorosso is offline
 
Join Date: Apr 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

While uploading I was watching someone from China trying to register. Not anymore, Thank you very much.. Installed and working on 4.0.8
Reply With Quote
  #58  
Old 11-11-2010, 04:37 AM
PSimmo PSimmo is offline
 
Join Date: Apr 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work for me on 4.08.
Uploaded the all the zone files into plugins/zones and it still says I need to download the zone files.
Reply With Quote
  #59  
Old 12-22-2010, 07:30 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work in 4.1?

Thanks
Reply With Quote
  #60  
Old 12-22-2010, 06:21 PM
The_Hawk The_Hawk is offline
 
Join Date: Aug 2009
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm running 4.1.0 PL2 and it's ticking along fine.
Reply With Quote
  #61  
Old 12-24-2010, 05:10 PM
deschutes deschutes is offline
 
Join Date: Sep 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod is exactly what I have been looking for. I made the change shown in post #51 to make it more of a blacklist (CN,RU,PK). If you do any further development it would be cool to provide a switch in the options to make it either a whitelist or blacklist. It appears to work just fine with VB 4.0.8. Hopefully this will eliminate the flood of spam registrations I have been getting from Pakistan lately.

Thanks!
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:04 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.05461 seconds
  • Memory Usage 2,328KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (4)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
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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