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 05-26-2012, 04:23 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Multi-dotted email addresses

Many spammers use email addresses that contain multiple periods. These are almost always spammers registered as such on BotScout.com or stopforumspam.com.

Examples of those that have registered on our forurm (and that we banned). Domain after the @ removed for this posting:

d.ikl.itlo.n.gce.t@
di.kl.it.l.o.ngc.e.t@
pr.u.d.e.n.t.i.ak.jug@
pru.d.e.nt.i.a.k.ju.g@
me.garer.er.t@
d.i.klit.l.o.n.g.ce.t@
d.ikli.t.l.o.n.g.cet@
p.ru.d.en.tia.k.jug@
pr.u.d.e.nt.i.akjug@
p.rude.ntiakj.ug@
pru.de.n.t.ia.kjug@

Has anyone developed a MOD to recognize these multi-dotted email address provided at time of registration so that they can be deleted automatically?
Reply With Quote
  #2  
Old 05-26-2012, 05:37 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If they are listed @ stopforumspam.com, why don't you use their blocklists?

Apart from that, yes I've developed a tool which checks all registration attempts against various rules and denies them if there is a match.

But this was solely developed for internal use and will not be released, sorry.
Reply With Quote
  #3  
Old 05-26-2012, 06:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
Has anyone developed a MOD to recognize these multi-dotted email address provided at time of registration so that they can be deleted automatically?

You could do something like this: create a new plugin using hook userdata_start and this code:

Code:
$this->validfields['email'][VF_CODE] = '
    $max_dots = 1;
    if ($retval = $dm->verify_useremail($data))
    {
        $parts = explode("@", $data);
        if (is_array($parts) && substr_count($parts[0], ".") > $max_dots)
        {
            $dm->error("bademail");
            $retval = false;
        }
    }
    return $retval;
';

It only checks the part before the '@', so set $max_dots to the number of dots you will allow (I think one dot in an email name probably isn't unusual, but that's up to you). Also, this uses the default 'bademail' phrase, but if you'd rather have a special error messages for "too many dots" you can create a phrase and use the varname in place of 'bademail'.



Quote:
Originally Posted by Andreas View Post
...But this was loely developed for internal use and will not be releases, sorry.
Oh well...thanks for letting us know.
Reply With Quote
  #4  
Old 05-26-2012, 08:11 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. I've created the plugin and activated it. We'll see how effective it is. If we stop seeing new registrations with multi-dotted email address's, I'll be happy as a clam.

As to the plugin "uses the default 'bademail' phrase"; where is this phrase located? One of the hardest things about working with vBulletin is learning just where things are!
Reply With Quote
  #5  
Old 05-26-2012, 08:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to Languages & Phrases > Search in Phrases, search for bademail and click the "Phrase Variable Name Only" radio button.

If you want to create a different message, go to Phrase Manager > Add New Phrase, and choose "Error Messages" for the phrase type. Whatever you choose for varname, that's what you'd want to put in place of bademail in the plugin code.
Reply With Quote
  #6  
Old 05-26-2012, 08:55 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.

Okay, so I located Error Messages Phrases Containing 'bademail' per your instructions. When I click the Edit button, if I wanted to change the existing text (You entered an invalid email address.), would I click the Copy Default Text button, change the text to what I want, and click Save? Is it as simple as that?
Reply With Quote
  #7  
Old 05-26-2012, 09:21 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that should do it.
Reply With Quote
  #8  
Old 05-26-2012, 10:19 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay. Thank you for your assistance. Most appreciated.

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

After creating this plugin, I logged out and attempted to register using a multi-dotted email address. The plugin works! Registration was thwarted.

This is going to reduce the workload on our Administrators. Kudos and thank you for the plugin code.
Reply With Quote
  #9  
Old 05-27-2012, 08:31 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kevin you rock! This is such an outstandingly simple way to prevent a ton of spammers Thank you.
Reply With Quote
  #10  
Old 05-28-2012, 12:13 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not all emails with more than one dot are spam. My primary email account is through Time Warner's Road Runner service and it has the format of "name@city.rr.com"
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 11:29 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.04042 seconds
  • Memory Usage 2,260KB
  • 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)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete