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 11-18-2012, 01:34 PM
Keith Keith is offline
 
Join Date: Jan 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Blocking foreign country IP ranges to stop registration spam

This week there's been an enormous amount of registration spam (100+ per hour), so I took the following steps:

1. I turned on the registration moderation with manual approval, the system sends me an email when a new registration comes through.

2. I have always had human verification turned on, with simple questions/answers, including math problems. So yesterday I eliminated the math related questions, and further customized the Questions/Answers to be more applicable to the content topic of our site. Meaning, if we're running a gardening site, the QA pertains to gardening.

3. Valid email verification has always been turned on and remains active.

As a result, moderation emails telling me to look at a new registration request have been reduced dramatically since I changed the Questions/Answers, but a few still get through and placed in the moderation queue before I do in and delete them. The Who's Online screen indicates they're still trying to register or scanning over my site.

When I look at the VB Who's Online, I'm seeing IP addresses like the following, some indicate they're using a proxy or some other method like a vpn to spoof location in the US.:

18.177.76.217.akado-ural.ru (by example - resolves to an IP in Boston, MA)
127-254.nwlink.spb.ru
dynamicip-176-214-33-177.pppoe.spb.ertelecom.ru
host224-180-109-176.lds.net.ua
139.static.118-96-211.astinet.telkom.net.id

Our site is entirely local based, at the State level. Unless one of our existing members is traveling on business outside the US, there would be very few reasons for someone else in a foreign country to register or post.

So is there a way to look at the location in this same manner, and block any location ending in .ru or .ua or .id by example? I don't think I can do this in htaccess, and thought maybe there's a VB hack available to do it by looking at the end of the IP as it appears in the Who's Online list?

I'm reading up on all the anti spam hacks, but haven't found something related specifically to blocking by those last two country letters. Thanks in advance for any guidance on this particular question.
Reply With Quote
  #2  
Old 11-18-2012, 01:46 PM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just generated this IP list. You can paste this directly into your .htaccess file. You may want to look at VPS to drop Russia and China.

IP blocking is not the best way to prevent spammers. Q&A and keycaptcha works best
Attached Files
File Type: txt cdir.ru.cn.txt (258.8 KB, 55 views)
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 01:57 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.03340 seconds
  • Memory Usage 2,180KB
  • Queries Executed 12 (?)
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
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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_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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete