Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2012, 06:44 PM
b3zra1y b3zra1y is offline
 
Join Date: Jun 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default ? blocking specific countries

I know this is not a question specific to vBulletin - but I'm looking for the most efficient way to ban user registrations from certain countries (e.g., Russia, Poland, Romania, China).

I can get a very long list of IP addresses for these countries, but I'd like to find the most succinct list by which to ban countries as a whole in the 'User Banning' options area.

for example...
61*
69*
116*
121*
123*

Can anyone point me to the best way to do this ?

THANKS

--------------- Added [DATE]1341331640[/DATE] at [TIME]1341331640[/TIME] ---------------

Can anyone help with this ?
Reply With Quote
  #2  
Old 07-09-2012, 03:54 AM
b3zra1y b3zra1y is offline
 
Join Date: Jun 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I've created a list of partial IP addresses for the countries I want to ban from the site (e.g., Russia, Ukraine). The reason for banning these countries is that I'm getting a lot of bogus new user registrations from them.

Here's an example of the list I have.
But the list for Russia alone is 946 entries.

62.5*
62.16*
62.32*
62.33*
62.61*
62.63*
62.64*
62.68*
... and so on

Is this the best way to fulfill my requirement ?
Or does vBulletin provide a simpler way ?

HELP !!
THANKS
Reply With Quote
  #3  
Old 07-09-2012, 07:28 AM
montsa007 montsa007 is offline
 
Join Date: Feb 2008
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to this website http://ipinfodb.com/ip_country_block.php and follow the on screen instructions, should help.
Generate the htaccess file and add the code in your htaccess.

Also block Lithuania, Romania, Hong Kong and China (The most horrible bots reside there)

But its not bulletproof, these bots can come to your site via a proxy.

I find the Vbulletin's inbuilt blocker useless, there is a plugin called 'stop forum spam', something like that which once added blocks the bot registrations in real time (it checks the ip of the bot with a huge database and saves heck load of work)
Reply With Quote
  #4  
Old 07-09-2012, 12:54 PM
b3zra1y b3zra1y is offline
 
Join Date: Jun 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks !
I run on a shared server at my hosting provider, so I don't think I can modify the .htaccess file.
Is that a showstopper ?

I saw stopForumSpam, and will install.
Reply With Quote
  #5  
Old 07-09-2012, 12:58 PM
DirtRider DirtRider is offline
 
Join Date: Feb 2011
Location: South Africa
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be able to change the .htaccess file with no problems. Have a look in your root and if there is not one just create one. However I found when doing china and those countries you end up at times blocking OZ an NZ
Reply With Quote
  #6  
Old 07-09-2012, 02:06 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Banning the way you're thinking of doing is never a good idea. You will end up banning countries you don't want to ban. Some examples from your last posted list...

62.5.0.0 to 62.5.127.255 = United Kingdom
62.16.128.0 to 62.16.255.255 = Norway
62.32.0.0 to 62.32.15.15 = Switzerland
62.32.15.16 to 62.32.15.31 = United Kingdom
62.32.53.0 to 62.32.53.31 = United States
62.61.64.0 to 62.61.127.255 = Finland
62.63.192.0 to 62.63.255.255 = Sweden
62.68.64.0 to 62.68.67.255 = Greece

The list goes on and on.

IP addresses always move around. Even if you use the current list from the link posted above. You have to periodically update the IPs or you'll lose countries because of IP moves. The only good way to ban countries is to have GeoIP installed on the server and kept up to date. You'll get between 99.5 and 99.8 percent accurracy using GeoIP.
Reply With Quote
  #7  
Old 09-16-2012, 05:21 AM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about this website http://www.trafficcleaner.com Is anybody using it or got anything good or bad to say about it? Also, will it have any effect on server load? Thanks.
Reply With Quote
  #8  
Old 09-16-2012, 04:39 PM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe this MOD might help. It is supposed to work on 4.x also

https://vborg.vbsupport.ru/showthread.php?t=205044
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 05:55 PM.


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.05098 seconds
  • Memory Usage 2,226KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete