vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Anti-Spam Options - Is Bot: Registration Time Check (https://vborg.vbsupport.ru/showthread.php?t=135094)

TheMilkCarton 11-13-2007 04:46 AM

Well, this mod seems pretty dead, and I doubt the dev would add this to the actual product, but I thought it was important to show the IP.

Change register_addmember_process to:

PHP Code:

$vbulletin->input->clean_array_gpc('p', array(
    
'isbot_time1' => TYPE_UINT
));

if (
$vbulletin->GPC['username'] && $vbulletin->GPC['email'])
{
    
$isbot_time1 $vbulletin->GPC['isbot_time1'];
    
$isbot_time2 TIMENOW;
    
$isbot_timediff intval($isbot_time2 $isbot_time1);

    if (
$isbot_timediff <= 15// difference in seconds
    
{
        
$isbot_username htmlspecialchars_uni($vbulletin->GPC['username']);
        
$isbot_email htmlspecialchars_uni($vbulletin->GPC['email']);

        
$isbot_subject $vbphrase['isbot_user_blocked_from_registering'];
        
$isbot_message $vbphrase['isbot_the_following_name_email_blocked']
            . 
': ' $isbot_username ' - ' $isbot_email
            
' (' $isbot_timediff ' ' $vbphrase['isbot_seconds_transpired'] . ')';
        
$isbot_message .= "\n\r\n\rAttempt was made from: "IPADDRESS ."";

        
vbmail($vbulletin->options['webmasteremail'], $isbot_subject$isbot_messagetrue);

        eval(
standard_error(fetch_error('noregister')));
    }


I think it helps decide whether or not I should just give in and ban a certain IP range.. my forum isn't exactly international so it really doesn't matter to me. I also think the IP in combination with the other things in the email will help you decide if it's a bot or if it's legit, since the problem I described in the post above can possibly lead to a lot of false positives.

GrendelKhan{TSU 11-15-2007 11:35 AM

wow sounds like just what I need!! thanks (don't know how I missed this!)

BadgerDog 11-15-2007 03:27 PM

There are three (3) register templates with the phrase:

<input type="hidden" name="url" value="$url" />

Which is the correct one to add th new text line after?

Thanks ... :)

Regards,
Badger

Edit: Ignore question. As a test, I added it to the template called "register" only and it must have worked, as after about an hour, I got this:

Quote:

The following user name with email address was blocked by the Is Bot mod: mubssnono - jastyfestap@mail.ru (2 seconds transpired)
I have the setting at 5 seconds. Is that about right based upon what I've been reading here?

mystic10 11-15-2007 05:17 PM

how do i edit..when i click on on the xml it shows all the codes but i cant edit them

mystic10 11-15-2007 05:22 PM

where do i exactly put this sorry not sure where to put please guide:

Change register_addmember_process to:

PHP Code:
$vbulletin->input->clean_array_gpc('p', array(
'isbot_time1' => TYPE_UINT
));

if ($vbulletin->GPC['username'] && $vbulletin->GPC['email'])
{
$isbot_time1 = $vbulletin->GPC['isbot_time1'];
$isbot_time2 = TIMENOW;
$isbot_timediff = intval($isbot_time2 - $isbot_time1);

if ($isbot_timediff <= 15) // difference in seconds
{
$isbot_username = htmlspecialchars_uni($vbulletin->GPC['username']);
$isbot_email = htmlspecialchars_uni($vbulletin->GPC['email']);

$isbot_subject = $vbphrase['isbot_user_blocked_from_registering'];
$isbot_message = $vbphrase['isbot_the_following_name_email_blocked']
. ': ' . $isbot_username . ' - ' . $isbot_email
. ' (' . $isbot_timediff . ' ' . $vbphrase['isbot_seconds_transpired'] . ')';
$isbot_message .= "\n\r\n\rAttempt was made from: ". IPADDRESS ."";

vbmail($vbulletin->options['webmasteremail'], $isbot_subject, $isbot_message, true);

eval(standard_error(fetch_error('noregister')));
}
}

BadgerDog 11-15-2007 05:25 PM

Quote:

Originally Posted by TheMilkCarton (Post 1381529)
Well, this mod seems pretty dead, and I doubt the dev would add this to the actual product, but I thought it was important to show the IP.

Change register_addmember_process to:

Thanks ... :up:

I made that change completely replacing existing plugin code with yours....

Regards,
Badger

TheMilkCarton 11-15-2007 09:32 PM

Mystic, You edit the plugin after it's been installed. Go to the Plugin Manager.

Badger, 5 seconds is extremely low. I constantly have bots taking up to 14 seconds (I have it set at 15), and my other hacks catch the rest that take over 15 seconds.

BadgerDog 11-15-2007 09:53 PM

Quote:

Originally Posted by TheMilkCarton (Post 1383358)
Mystic, You edit the plugin after it's been installed. Go to the Plugin Manager.

Badger, 5 seconds is extremely low. I constantly have bots taking up to 14 seconds (I have it set at 15), and my other hacks catch the rest that take over 15 seconds.

Roger that ... :up:

I'll raise it to 15 seconds....

BTW, what other hacks to you use to catch the rest?

Thanks .. :)

Regards,
Badger

mystic10 11-16-2007 04:23 AM

thanks milkcarton very kind of you to reply

Lionel 11-16-2007 04:48 AM

Quote:

Originally Posted by webgod (Post 1296510)
if there's enough interest, I could modify it so the IP is added to the Ban IP list

That would be great to auto ban both IP and email address. Because they keep on trying over and over. I've got mine set at 5 seconds. The way those bots seem to work, they try first, then they retry with a delay. If they get banned the first time, then all would be good.


All times are GMT. The time now is 09:36 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.01356 seconds
  • Memory Usage 1,759KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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