vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Large IP database banning (https://vborg.vbsupport.ru/showthread.php?t=175988)

theFAILURE 04-12-2008 11:12 PM

Large IP database banning
 
Is there a limit to how many IP's you can have in the "user banning options" ?

Right now I have maybe 300 or so, including some wildcards.

Bradley_Wint 04-13-2008 04:03 AM

no... you could ban the whole world if you like...no limits.

Lynne 04-13-2008 04:13 AM

Quote:

Originally Posted by Bradley_Wint (Post 1489503)
no... you could ban the whole world if you like...no limits.

Actually, it would depend on the column definition in the database. My guess is that the limit is defined by that. But, I don't know off the top of my head where it is defined in the database so I can't go look up the column type.

edit: ahha.... it is a mediumtext so only 16777215 characters. :D

Bradley_Wint 04-13-2008 05:49 AM

Quote:

Originally Posted by Lynne (Post 1489507)
Actually, it would depend on the column definition in the database. My guess is that the limit is defined by that. But, I don't know off the top of my head where it is defined in the database so I can't go look up the column type.

edit: ahha.... it is a mediumtext so only 16777215 characters. :D

ah good point lol.

Paul M 04-13-2008 10:00 AM

The larger the list, the slower pages will load .....

theFAILURE 04-13-2008 05:23 PM

Thanks Paul, yes, I realized that it checks the list EVERY time a page is served, but so far with the huge list that I have, my forum has not noticed a performance hit.

I'm probably up to 500 ip's now.

I wonder if it would be better if I did this on the server level?

Bradley_Wint 04-13-2008 05:52 PM

theFAILURE - I like your display picture LOL

snakes1100 04-13-2008 06:33 PM

If your host allows you to use htaccess files on your account, place one in your root/public_html folder. This will prevent them from getting to the site period and save valuable mysql resources as well.

<Files ~ "404\.html">
Order Allow,deny
Allow from ALL
</Files>

Order Allow,Deny
Deny from iphere or domain or ip class 1.1.1.1 or 1.1.1 or 1.1
Deny from iphere
Allow from all

theFAILURE 04-13-2008 07:17 PM

Thanks a lot for the advice, but this is a dedicated IIs server :o

I agree though, doing it on the server level instead of forum level would save resources.

What I am doing at this point is blocking a couple countries from my forum.

Quote:

Originally Posted by Bradley_Wint (Post 1489834)
theFAILURE - I like your display picture LOL

If you only knew the background of that avatar ;)

snakes1100 04-13-2008 07:22 PM

It helps when you post that info in the first place.

If its a dedicated IIS server, then edit the site properties in IIS manager and then click the directory security tab and set up the IPs there.


All times are GMT. The time now is 12:04 PM.

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.04474 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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