Osclass Support Forums

General osclass questions => General discussion => Topic started by: leraat on January 12, 2022, 01:52:15 PM

Title: What is the solution to spam every day, registering
Post by: leraat on January 12, 2022, 01:52:15 PM
What is the solution to spam every day, registering with Google protection activated
Title: Re: What is the solution to spam every day, registering
Post by: MB Themes on January 12, 2022, 03:06:46 PM
@leraat
Check this plugin, usually helps:
https://osclasspoint.com/osclass-plugins/protection-and-spam/anti-spam-and-bot-protection-osclass-plugin-i51
Title: Re: What is the solution to spam every day, registering
Post by: leraat on January 12, 2022, 03:38:58 PM
I bought it, is the setup the same or does something have to be changed?
Title: Re: What is the solution to spam every day, registering
Post by: MB Themes on January 12, 2022, 04:30:33 PM
@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
Title: Re: What is the solution to spam every day, registering
Post by: leraat on January 12, 2022, 08:38:00 PM
Thank you for the Plugin, its work is great so far, no bot has been registered. Thank you
Title: Re: What is the solution to spam every day, registering
Post by: MB Themes on January 13, 2022, 07:41:19 AM
@leraat
Glad to hear that ;)
Title: Re: What is the solution to spam every day, registering
Post by: ebaibr on September 07, 2022, 01:48:51 AM
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 ...
Title: Re: What is the solution to spam every day, registering
Post by: MB Themes on September 07, 2022, 10:52:26 AM
@ebaibr
I do not recognize that table, it is probably from some other plugin.
Title: Re: What is the solution to spam every day, registering
Post by: Own Petz on November 15, 2022, 12:53:04 PM
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');