vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Block Registrations from Specific Countries (https://vborg.vbsupport.ru/showthread.php?t=279010)

VICOS 02-22-2012 10:38 PM

Block Registrations from Specific Countries
 
Has anyone ever modified registration.php to have it check a GEO Database like IP2Nation and block registrations from specific countries, or just block all registrations from outside the USA?

I've coded other programs to do this, but wanted to prevent reinventing the wheel in case anyone else has done it.

A client is getting so many bots hitting the registration.php page that it is placing high loads on the server (the real load is being caused by the program used to generate the captcha image)

Blocking entire countries at the firewall is not practical...some countries have thousands of IP ranges assigned to them.

kh99 02-23-2012 12:26 AM

There is something called zbblock (it's not a mod here) that blocks a lot of things. The idea is that it blocks before getting to the vb code so that it cuts down on resource use. To be honest I'm not sure if it does exactly what you're looking for, but if you're looking to save coding it yourself you might want to look at it.

VICOS 02-23-2012 04:01 PM

Quote:

Originally Posted by kh99 (Post 2302488)
There is something called zbblock (it's not a mod here) that blocks a lot of things.

Thanks kh99. I took a look and the concept is right on.

Kinda surprised no one else in the vB community has addressed this.

BirdOPrey5 02-23-2012 07:21 PM

There is a mod: https://vborg.vbsupport.ru/showthread.php?t=205044

zbblock blocked way too much legit traffic in my tests.


All times are GMT. The time now is 05:32 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.01169 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete