vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Moderate New Registrations Based On IP Geographical Origin (https://vborg.vbsupport.ru/showthread.php?t=205044)

Jafo232 02-10-2009 10:00 PM

Moderate New Registrations Based On IP Geographical Origin
 
1 Attachment(s)
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:


Jafo232 02-11-2009 05:15 PM

Reserved..

Jon Tolzien 02-11-2009 05:24 PM

Sweet exactly what i needed. Installed.

Jafo232 02-11-2009 07:23 PM

Great, let me know how it works out for you. :)

bleros 02-12-2009 12:34 AM

Great Jafo good work..

Now how to block just Russian and Chinna :) how to use

XtremeOffroad 02-12-2009 01:01 AM

Oh this might be a blesing, Damn .ru spammers are a real headache.
Thanks.

Jafo232 02-12-2009 01:05 AM

Quote:

Originally Posted by bleros (Post 1741374)
Great Jafo good work..

Now how to block just Russian and Chinna :) how to use

If you want to do that you could treat the valid country codes section as an EXCLUDE list, then just change this line in whois.php:

Code:

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

Code:

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

Nadeemjp 02-12-2009 05:43 AM

a much needed mod. .ru has been bothering me as well for a long time. and .cn as well.

dknelson 02-12-2009 09:45 AM

OK..I am trying this one again. I get this in my VBulletin options:

You need to download zone files

If you see an error below, then you did not upload the zone files yet (see readme).

I have the zone files downloaded, unzipped and uploaded to the zones folder. This is ALL it says, no error.

bleros 02-12-2009 10:32 AM

Quote:

Originally Posted by Jafo232 (Post 1741382)
If you want to do that you could treat the valid country codes section as an EXCLUDE list, then just change this line in whois.php:

Code:

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

Code:

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


Good, but I installed the entire members becoming Administrator shit :@ my usergroup id 4 is Administrator .. Having lost the posts etc.


All times are GMT. The time now is 08:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete