vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Multi-dotted email addresses (https://vborg.vbsupport.ru/showthread.php?t=283497)

Snowhog 05-26-2012 04:23 PM

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?

Andreas 05-26-2012 05:37 PM

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.

kh99 05-26-2012 06:26 PM

Quote:

Originally Posted by Snowhog (Post 2333160)
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 (Post 2333179)
...But this was loely developed for internal use and will not be releases, sorry.

Oh well...thanks for letting us know. :)

Snowhog 05-26-2012 08:11 PM

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!

kh99 05-26-2012 08:16 PM

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.

Snowhog 05-26-2012 08:55 PM

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?

kh99 05-26-2012 09:21 PM

Yes, that should do it.

Snowhog 05-26-2012 10:19 PM

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.

John Lester 05-27-2012 08:31 PM

Kevin you rock! This is such an outstandingly simple way to prevent a ton of spammers :) Thank you.

Disco_Stu 05-28-2012 12:13 AM

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"


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