![]() |
Automatically deny registration for users with multi-dotted email address
1 Attachment(s)
On my forum many bots have multi-dotted email address so I wanted to avoid them to create a new account on my forum.
The way to do this is create a new plugin to recognize these multi-dotted email address provided at time of registration and delete them automatically. Steps:
Code:
$this->validfields['email'][VF_CODE] = ' Special thanks to kh99 who provided this solution. |
Many thank
|
If you use email verification, that should catch the phony email addresses so they wouldn't be able to register, anyway. ;)
|
This plugin (not a MOD) was suggested to me based on my post that was answered by kh99 at https://vborg.vbsupport.ru/showpost....12&postcount=3
It doesn't delete registrants with multi-dotted emails, it merely prevents them from actually registering. |
This is a good idea.
To prevent brain strain, can you easily tell me how to also check for semicolons or colons before the @? For a while I was getting Chinese bots with email address like gobbledygoop;more_gobbledygoop@somesite.com |
You could write two additional plugins (give each a unique plugin name) using the code with only a slight modification.
Plugin to deny registration if email address contains any colons preceding the @ Code:
$this->validfields['email'][VF_CODE] = ' Code:
$this->validfields['email'][VF_CODE] = ' |
You should be able to do a preg_match to cover all of them in a single piece of code.
|
Thanks. I'll play around with this a bit and see if I can make it one if a or b or c statement.
|
Maybe make it a setting where you can add what to exclude. ;)
|
That's probably a bit beyond my vBulletin skills.
|
I have complete faith in you, sir.
|
LOL. Well you're not going to get rich that way. :)
|
I'll always be rich in friendship with you as a friend. ;)
|
Quote:
You might be able to do something like this: Code:
$this->validfields['email'][VF_CODE] = ' (But I haven't tested it at all). |
You could even make the array a setting option to expand it. ;)
|
Shouldn't this be titled something like "Automatically deny registration for users with multi-dotted email address" since it doesn't actually delete anything?
|
Quote:
|
Or "Prevent users from registering with SPAM-like email addresses". ;)
|
Hi:
This is totally unrelated, but I ask anyway. Hope that I will get the suggestion. I want to deny guests who IPs do not show up in the list. How can I do this? Thanks. Victor |
Quote:
Slight modification to prevent commas, semicolons, and colons, since I got another Chinese bot this morning trying to register with the email "liantianha,ofangjiancong@gmail.com": PHP Code:
|
Quote:
Hmm, that's interesting because that code should still be calling the existing is_valid_email() function, which does a preg_match using some complicated pattern which looks like it doesn't allow commas in the name (or semicolons, for that matter). Maybe it's not calling that function like I think it is. ETA: no, I'm wrong somewhere, because commas are allowed even if I disable this plugin. So, good addition. ETA: actually it looks like it's a vb bug, a problem in that pattern. It contains "+-/" which allows characters from + through /, which are "+ , - . /". The effect is only to allow commas when they shouldn't be allowed (the - should be escaped, or listed first or last). (I missed your post, nhawk - did you beat me to it?) |
I'm not knocking the mod, but what about people with legitimate periods in their email?
An interesting note for Gmail users, the number of periods is irrelevant. myusername@gmail.com it the same as my.user.name@gmail.com or m.y.u.s.e.r.n.a.m.e@gmail.com. |
Most likely, if you're using:
Quote:
|
Quote:
PHP Code:
But Boofo is correct: if you have more than 1 or 2 you're probably up to no good anyway. Added: This works fine on a vBulletin 3.87 forum as well as 4.x. |
OK, just pointing out that at least Gmail ignores any periods before the @.
|
And that is exactly why you see a lot of gmail spammer addresses. ;)
|
Yeah but...
They are the same address. Try it if you have Gmail. Send yourself something with a few extra periods before the @, it will still be delivered. I don't want to keep taking this off-topic though. |
Quote:
|
Quote:
wish there was better ways to prevent spammers..:( was sent here from here https://vborg.vbsupport.ru/showthread.php?t=283667 |
Quote:
|
Quote:
|
Quote:
See https://vborg.vbsupport.ru/showpost....22&postcount=3 |
It doesn't make much sense to use email verification AND allow them to post before they verify. Might as well not even bother with email verification at that point.
|
Exactly. But when I first started using vBulletin, I found the sheer number of options a bit overwhelming and some of my settings in the early days didn't make a lot of sense either.
Additionally, if a forum has more than one Admin, sometimes things can get messed up that way - best to restrict the permissions of co-admins to avoid this. |
IIRC, guests aren't allowed to posts in the default vb install settings. I have never understood why some of these sites allow guests to post. That causes more problems than anything when it comes to spammers.
|
I agree. But Guests are usergroup #1 by default. Users Awaiting Email Confirmation are usergroup #3. I don't recall what the defaults for usergroup 3 are.
|
Thanks for this. I used this plugin, but did
[pre]$dm->error("humanverify_image_wronganswer");[/pre]so that the spammers (hopefully!) don't catch on that I've blocked their email address and then change their tactics. |
I have a lot of spam Bot registration with similar username typs with Caps lock after the first word in the username.
Example of spam username: IKowalski KMcClella KDesmond Please how can i deny registration with username with caps lock on forum registration. First word can have Caps lock other word should be lower case. Your assistance will be appreciated. __________________ |
hello,
How to please Require a unique email address during registration. Thank you very much and good day! |
All times are GMT. The time now is 06:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|