![]() |
|
Mod Options |
![]() |
|||||||||||||||
Automatically deny registration for users with multi-dotted email address
![]() Developer Last Online: Sep 2023 ![]() ![]() ![]()
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
|
Comments |
#3
|
||||
|
||||
If you use email verification, that should catch the phony email addresses so they wouldn't be able to register, anyway.
![]() No members have liked this post.
|
#4
|
||||
|
||||
This plugin (not a MOD) was suggested to me based on my post that was answered by kh99 at http://www.vbulletin.org/forum/showp...12&postcount=3
It doesn't delete registrants with multi-dotted emails, it merely prevents them from actually registering.
__________________
"It is a capital mistake to theorize in advance of the facts." - Sherlock Holmes
Kubuntu Forums . Net | StopForumSpam No members have liked this post.
|
#5
|
|||
|
|||
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;[email protected]
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#6
|
||||||||
|
||||||||
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 @
Plugin to deny registration if email address contains any semicolons preceding the @
I'm sure that these could be incorporated into the original plugin, but I'm not a coder, so maybe kh99 can suggest how to do that.
__________________
"It is a capital mistake to theorize in advance of the facts." - Sherlock Holmes
Kubuntu Forums . Net | StopForumSpam No members have liked this post.
Last edited by Snowhog; 27 May 2012 at 22:16. |
#7
|
||||
|
||||
You should be able to do a preg_match to cover all of them in a single piece of code.
No members have liked this post.
|
#8
|
|||
|
|||
Thanks. I'll play around with this a bit and see if I can make it one if a or b or c statement.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#9
|
||||
|
||||
Maybe make it a setting where you can add what to exclude.
![]() No members have liked this post.
|
#10
|
|||
|
|||
That's probably a bit beyond my vBulletin skills.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#11
|
||||
|
||||
I have complete faith in you, sir.
No members have liked this post.
|
#12
|
|||
|
|||
LOL. Well you're not going to get rich that way.
![]()
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#13
|
||||
|
||||
I'll always be rich in friendship with you as a friend.
![]() No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by Snowhog
That's a good thought, but unfortunately it won't work the way this is written. It replaces the code that verifies an email address, so if you have multiple plugins doing the same thing, only the last one to run would have any effect.![]()
You might be able to do something like this:
(But I haven't tested it at all). The following members like this post: djbaxter
|
#15
|
||||
|
||||
You could even make the array a setting option to expand it.
![]() 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 12:00.