Osclass Support Forums
General osclass questions => General discussion => Topic started by: leraat on January 12, 2022, 01:52:15 PM
-
What is the solution to spam every day, registering with Google protection activated
-
@leraat
Check this plugin, usually helps:
https://osclasspoint.com/osclass-plugins/protection-and-spam/anti-spam-and-bot-protection-osclass-plugin-i51
-
I bought it, is the setup the same or does something have to be changed?
-
@leraat
Try to play with parameters, especially connection to stopforumspam, it would be strange if all these emails would be evaluated as "OK"
... ban mail domains
-
Thank you for the Plugin, its work is great so far, no bot has been registered. Thank you
-
@leraat
Glad to hear that ;)
-
the bot was not registered in the users table, but it is in the antspam Plugin table (oc_t_spam_protection_ban_log). Query the database will have a table that has a high size and quantity, this will happen until your hosting space ends ...
-
@ebaibr
I do not recognize that table, it is probably from some other plugin.
-
IF you dont have budgets and dont want to buy plugin for these types of email . you can restrict them . simply Allow only specific email providers.
I have added some popular email provider that is allow to Register , you can just paste this code into function.php file. (You can also add more email provider according to your requirement)
function cust_restrict_mail_providers() { $authorized_providers = array(
'gmail.com',
'hotmail.com',
'live.com',
'yahoo.com',
'outlook.com',
'yandex.com',
'bing.com',
'microsoft.com',
'mailbox.org',
'mail.live.com',
'rediff.com',
'rediffmail.com'
);
$current_provider = preg_replace('/^.*@(.*)$/i', '$1', Params::getParam('s_email')); if (!in_array($current_provider, $authorized_providers)) {
osc_add_flash_error_message( _m('Accounts not allowed'));
osc_redirect_to(osc_register_account_url());
exit;
}
}osc_add_hook('before_user_register', 'cust_restrict_mail_providers');