Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

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
  #42  
Old 05-26-2010, 09:13 PM
The_Hawk The_Hawk is offline
 
Join Date: Aug 2009
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marv View Post
I see the developer wasn?t responding here for quite a while. Can anyone confirm
  • what The_Hawk mentioned above ?
  • that this mod works with 4.0.3 ?
Not so much. With 4.0.3 PL1 it still seems to prevent anyone from registering at all. After filling in the registration details and hitting submit I just get a white page here: http://www.vwwatercooled.org.au/regi...p?do=addmember and nothing happens.

I'm still working my way through the other mods I have installed to see if there is a conflict, although nothing has come up yet.

VBSEO is updated to 3.5.0 Gold, and I have tried re-installing again today, still no dice. Does anyone have this working with 4.0.3 PL1?


EDIT: To confirm, I have now been through ALL of my mods and disabled everything and it still doesn't work so I'm not sure what's up here.
Reply With Quote
  #43  
Old 05-27-2010, 10:34 AM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using it on 4.0.3 with no issues, so I cannot speak to what is happening to "The Hawks" server. A blank screen is useless information. You have to look in your server log to find out WHAT the error is. It could be something as simple as not uploading the files properly.

Short answer, yes, it works for 4.0.3...
Reply With Quote
  #44  
Old 05-30-2010, 05:04 AM
The_Hawk The_Hawk is offline
 
Join Date: Aug 2009
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jafo232 View Post
You have to look in your server log to find out WHAT the error is.
No problems, been getting round to doing a little more digging, really should have just started in the logs, but then I'm very much still learning as I move along.

It seems it might just be as simple as an out of memory error:

[Thu May 27 09:58:58 2010] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 88 bytes) in /var/www/vhosts/vwwatercooled.org.au/httpdocs/plugins/whois.php on line 35, referer: http://www.vwwatercooled.org.au/register.php

We absolutely have to move to a bigger better server VERY soon anyway, so hopefully that will fix this problem too.
Reply With Quote
  #45  
Old 05-30-2010, 03:52 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #46  
Old 05-31-2010, 04:25 AM
The_Hawk The_Hawk is offline
 
Join Date: Aug 2009
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Many thanks, that did the trick and it all seems to be working under 4.0.3 PL1 here now
Reply With Quote
  #47  
Old 07-11-2010, 11:46 PM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't it be much better to have a field for countries we want to moderate as opposed to a field for countries we don't? (or have both?)

I mean I would like to moderate Russia and China only. So I am not going to spend 3 hours listing the country code for the other 200 countries I want to let through.

I know I can't do a better job and that I shouldn't complain about free stuff but I think it is logical.

Basically we have two fields....

Field 1 : Countries to let through without moderation
Field 2 : Countries to moderate

You leave field 1 blank let through without moderation all countries aside from the ones in field 2.
Reply With Quote
  #48  
Old 07-12-2010, 11:51 AM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are modifications that do this, read the entire thread..
Reply With Quote
  #49  
Old 07-12-2010, 05:27 PM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did read the whole thread and I read it again cannot see anything related to what I suggested.
Reply With Quote
  #50  
Old 07-12-2010, 05:32 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It makes no sense to have the two fields you suggest. If you have a field to let users through without moderation that is the same as creating a white list. The second list does the same exact thing.

I guess you did not look hard tho:

https://vborg.vbsupport.ru/showpost....1&postcount=24
Reply With Quote
  #51  
Old 07-12-2010, 05:38 PM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not talking about a whitelist. I am talking about a black list.

There are roughly 200 countries in the world. I want to black list 2 of those countries..... Russia and China. Under the current system that requires me to manually whitelist 198 countries. If instead there was was blacklist field I would simply have to blacklist 2 countries.
Reply With Quote
Reply


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 10:44 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.04635 seconds
  • Memory Usage 2,336KB
  • 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
  • (3)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