![]() |
|
|
Mod Options |
Automatically deny registration for users with multi-dotted email address Details »»
|
|||||||||||||||
|
Automatically deny registration for users with multi-dotted email address
Developer Last Online: May 2013
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:
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'. Special thanks to kh99 who provided this solution. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||||||
|
#16
|
|||
|
|||
|
Shouldn't this be titled something like "Automatically deny registration for users with multi-dotted email address" since it doesn't actually delete anything?
No members have liked this post.
|
|
#17
|
|||
|
|||
|
Originally Posted by John Lester
you are right
![]() No members have liked this post.
|
|
#18
|
||||
|
||||
|
Or "Prevent users from registering with SPAM-like email addresses".
![]() No members have liked this post.
|
|
#19
|
|||
|
|||
|
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 No members have liked this post.
|
|
#20
|
||||
|
||||
|
Originally Posted by kh99
Perfect.
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":
__________________
Psychology Self-Help & Mental Health Support Forum Tourette Syndrome Foundation of Canada Peer Support Forum Catalyst Local Search Forum No members have liked this post.
|
||||
|
#21
|
||||
|
||||
|
Originally Posted by djbaxter
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?)
__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread. No members have liked this post.
Last edited by kh99 : 29 May 2012 at 17:10. |
|
#22
|
|||
|
|||
|
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. No members have liked this post.
|
|
#23
|
||||
|
||||
|
Most likely, if you're using:
The following members like this post: djbaxter
|
|
#24
|
||||
|
||||
|
Originally Posted by dilbert
It's your choice but you can set the number of allowed periods here:
Change that =>1 to =>2 or =>3 or whatever. Actually, on reflection, I went back and changed it to 2 on my forums. 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.
__________________
Psychology Self-Help & Mental Health Support Forum Tourette Syndrome Foundation of Canada Peer Support Forum Catalyst Local Search Forum No members have liked this post.
|
||||
|
#25
|
|||
|
|||
|
OK, just pointing out that at least Gmail ignores any periods before the @.
No members have liked this post.
|
|
#26
|
||||
|
||||
|
And that is exactly why you see a lot of gmail spammer addresses.
![]() No members have liked this post.
|
|
#27
|
|||
|
|||
|
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. No members have liked this post.
|
|
#28
|
|||
|
|||
|
No. Gmail may ignore them but most email clients and servers do not. And either way, it's a signal for spam that personally I want to eliminate/prevent.
__________________
Psychology Self-Help & Mental Health Support Forum Tourette Syndrome Foundation of Canada Peer Support Forum Catalyst Local Search Forum No members have liked this post.
|
|
#29
|
||||
|
||||
|
Originally Posted by Boofo
Are you sure Boofo?
I use email verification (require clicking the activation link in the email sent after registration). However we get quite some bogus email members who are able to register. So you could use a bogus email to register.![]() wish there was better ways to prevent spammers.. ![]() was sent here from here http://www.vbulletin.org/forum/showthread.php?t=283667 No members have liked this post.
Last edited by The Rocketeer : 30 May 2012 at 08:02. |
|
#30
|
|||
|
|||
|
Originally Posted by The Rocketeer
Answered in that thread at http://www.vbulletin.org/forum/showp...22&postcount=3
__________________
Psychology Self-Help & Mental Health Support Forum Tourette Syndrome Foundation of Canada Peer Support Forum Catalyst Local Search Forum No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 03:58.







I use email verification (require clicking the activation link in the email sent after registration). However we get quite some bogus email members who are able to register. So you could use a bogus email to register.

