Recaptcha v2 unable to stop spam

Home Forums Porto – Responsive HTML5 Template Recaptcha v2 unable to stop spam

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #10044778
    tcguide
    Participant

    Hello,
    I’m using Recaptcha v2. I still get quite a bit of spam especially on weekends. Most of it is from .ru. Is there a way to validate email input and prevent .ru emails?



    Template Version: 9.1.0
    #10044782
    Support
    Keymaster

    Hello, you can add a “filter” before $mail->Send(); in the php File.:

    if (preg_match("/.ru/", $_POST['email'])){
    	$arrResult = array ('response'=>'error','errorMessage'=>'Blocked!');
    	exit();
    }

    #10044785
    tcguide
    Participant

    Thank you! I’ll give that a try!


    #10044801
    tcguide
    Participant

    Unfortunately that didn’t stop it. Any other suggestions?


    #10044802
    Support
    Keymaster

    Hi, are you sure the spam is coming from that form? You might have another php file that is sending those emails.

    You can also try recaptcha v3.
    https://www.okler.net/previews/porto/10.2.0/contact-us-recaptcha.html

    Make sure you remove all php files from old versions.


    #10044808
    tcguide
    Participant

    I’m sure its from the V2 php. I’ve deleted the file to test and the spam stopped.
    I was going to configure v3 but I noticed there are several security settings on v2.
    It was set to the middle. I went ahead and changed that to most secure level.
    So far no spam. The weekend will be the real test as that’s when most of the spam comes.
    If that does not reasonably stop it I’ll switch and try the v3.


    #10044817
    tcguide
    Participant

    The higher (max) security setting seemed to have stopped the majority of the spam. Down to getting 1-2 a day. That’s manageable.


Viewing 7 posts - 1 through 7 (of 7 total)

This topic is marked as "RESOLVED" and can not rceive new replies.