vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to "block" certain users (https://vborg.vbsupport.ru/showthread.php?t=205448)

Forsyth-Online 02-15-2009 12:52 PM

How to "block" certain users
 
I switched my forum over to vbulletin about a month ago and I have had several international registered users that only post spam. I am a local site for my county and there is really no reason for an international person to sign up unless they are moving to my area. Is there a way to block ip's that are not local? or at least us based?

UKBusinessLive 02-15-2009 01:09 PM

Quote:

Originally Posted by Forsyth-Online (Post 1744805)
I switched my forum over to vbulletin about a month ago and I have had several international registered users that only post spam. I am a local site for my county and there is really no reason for an international person to sign up unless they are moving to my area. Is there a way to block ip's that are not local? or at least us based?

within your AdminCP under "Options > User Banning Options" you can add IP addresses

Say for example this ip comes from China 58.119.255.255 By adding 58. you'll be banning every number in the chinese 58. ip range, Thats what i do and it works a treat.

Theres are loads of ip ranges for china so do them as you get them as oposed to doing every single one.

Since doing that i've not had a single sign up from China or Russia

Another way to ban an entire country is to add to the .htaccess like below, i've only done a few examples but you'll soon get the hang of it :)

Code:

<Limit GET HEAD POST>
order allow,deny
# Country: CHINA
# ISO Code: CN
# Total Networks: 1,542
# Total Subnets:  186,401,536
deny from 58.
deny from 59.
deny from 60.
deny from 61.
deny from 112.
deny from 113.
deny from 114.
deny from 115.
deny from 116.
deny from 117.
allow from all
</Limit>

Just remember that the US is the worlds worse Spam country and its best just to check the country from the IPs to make sure you don't ban any US ones

I use this, its pretty cool http://www.geobytes.com/IpLocator.htm?GetLocation


All times are GMT. The time now is 11:35 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.01697 seconds
  • Memory Usage 1,712KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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