![]() |
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.
|
All times are GMT. The time now is 07:17 PM. |
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:
|