2019-09-06, 07:46 PM
Regards
Sorry for my English, I'm Spanish and I'm using a translator
In my forum I have enabled the rule of only admitting an email when registering, that two people with the same email cannot register.
I have noticed that they are registering spamers with the same account, what they do is put points in the name, example:
[email protected]
[email protected]
They are really the same email, but the user registry supports it. The longer the name, the more possible combinations so that the spamers can register with the same email.
I have created some lines of php language that corrects the error, these are
What it does is separate the name and domain, remove the points in the name and re-join the name and domain.
Then I put it in inc/functions.php on line 6537 just before checking the email in the database.
I have tried it locally and it seems to work.
Attention, I am not an expert. I ask some master of the forum that if he sees it right.
Thanks and regards.
Sorry for my English, I'm Spanish and I'm using a translator
In my forum I have enabled the rule of only admitting an email when registering, that two people with the same email cannot register.
I have noticed that they are registering spamers with the same account, what they do is put points in the name, example:
[email protected]
[email protected]
They are really the same email, but the user registry supports it. The longer the name, the more possible combinations so that the spamers can register with the same email.
I have created some lines of php language that corrects the error, these are
list($nombre, $dominio) = explode("@", $email);
$nombre = str_replace(".", "", $nombre);
$email = $nombre."@".$dominio;
What it does is separate the name and domain, remove the points in the name and re-join the name and domain.
Then I put it in inc/functions.php on line 6537 just before checking the email in the database.
I have tried it locally and it seems to work.
Attention, I am not an expert. I ask some master of the forum that if he sees it right.
Thanks and regards.