Answer the question
In order to leave comments, you need to log in
Is it possible to disable registration from certain emails?
Hello. Every day, 50-100 spam users are registered with addresses like @sharklasers.com, @makemoneypower.com, @daviescapemay.com, @o2.pl. There are ways to somehow prohibit the registration of users, e-mail. whose mail contains these domains? Site on Joomla 2.5.
Answer the question
In order to leave comments, you need to log in
Something like this: we edit the
file /components/com_users/models/registration.php
beginning (I have line 310):
// Merge in the registration data.
foreach ($temp as $k => $v) {
$data[$k] = $v;
}
$blocked=' @sharklasers.com @makemoneypower.com @daviescapemay.com @o2.pl';
preg_match('/^.*(\@.*)$/', $data['email1'], $e_m);
if (strpos($blocked,$e_m[1]) >0) $data['email1']='[email protected]';
// Prepare the data for the user object.
$data['email'] = $data['email1'];
$data['password'] = $data['password1'];
$useractivation = $params->get('useractivation');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question