vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   An idea to stop some spammers (https://vborg.vbsupport.ru/showthread.php?t=130193)

bamaster 10-28-2006 01:58 PM

An idea to stop some spammers
 
It might just be the guys that are registering on my site, but there seems to be a trend here.

During registration, I've added a custom profile field and it's required. It is called "Where did you come from?"

Well, the spambots automatically complete this field with their username. 95% of my spammer registrations do this. Most of their emails don't bounce and their IPs are all over the place.

Is there a way to test for this? Something like, "if profile field matches username then ban"?

Thoughts?

bamaster 10-30-2006 01:06 PM

Bump for the Monday crew.

Paul M 10-30-2006 01:48 PM

Try this ;

Create a plugin linked to the register_addmember_process hook.

Put this code in it (adjust the two variables to suit).

PHP Code:

$spamgroup 4;
$checkfield 'field6';

if (
$vbulletin->GPC['username'] == $vbulletin->GPC['userfield'][$checkfield])
{
    
$userdata->set('usergroupid'$spamgroup);


Note, this is untested.

bamaster 11-03-2006 10:46 PM

Hey Paul,

It works! I tried it myself and I was allowed to register and the very next click gave me the Banned message.

It didn't change the User Title to read "Banned", but that's cool. I'll report after a while about how much this has reduced my spambot registrations.

THANKS A TON!


All times are GMT. The time now is 07:14 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.00979 seconds
  • Memory Usage 1,715KB
  • 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_php_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