• Resolved mibx

    (@mibx)


    I am getting spam emails submitted from the contact form with google reCapcha turned on. I tried test form: without recapcha mail not sended, but spam still arrives..

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • WD Support

    (@wdsupport)

    Hi,

    Could you please specify which version of the plugin are you using? make sure to use the last version.

    Thanks. Have a nice day.

    Thread Starter mibx

    (@mibx)

    Used the last plugin version for a week. 1-2 Spam emails from form once in few days still arrives. Sample: https://prntscr.com/lnx344

    Hi,

    Could you please try the following solution:

    1. In the form please add the <input type=”hidden”>,

    2. In the public function savedata($form, $id) { of the contact-form-maker/frontend/models/form_maker.php file please add:
    if(isset($_POST[“spamhidden”]) && trim($_POST[“spamhidden”]) != “”) { return false; } ,
    where the spamhidden is the name of the hidden field.

    Thanks. Have a nice day.

    • This reply was modified 5 years, 12 months ago by editanazaryan.
    Thread Starter mibx

    (@mibx)

    How to add in form field <input type=”hidden” name=”spamhidden”>?
    In plugin FAQ:
    Can I add more fields to Contact Form Builder?
    There is no possibility of adding additional fields…

    Hi,

    Sorry for misleading.

    Please note that in the “Section break” field, there is a section to add HTML. There you can add the hidden input. Please see here.
    The file is contact-form-builder/frontend/models/CFMModelForm_maker.php.

    In the case you may face any difficulties please, contact us by using the following email address: [email protected]

    We will help to fix the issue.
    Thanks.

    Thread Starter mibx

    (@mibx)

    In contact-form-builder/frontend/models/CFMModelForm_maker.php added:

    public function savedata($form, $id) {
        $fm_settings = get_option('cfm_settings');
        $all_files = array();
        $correct = FALSE;
    		$captcha_exist = isset($_POST["captcha_improve_".$id]) ? true : false;
        $id_for_old = $id;
        if (isset($_POST['spamhiddenedv']) && trim($_POST['spamhiddenedv']) != "") { return false; }
    .... function code ......

    In form (section break) added:
    <input type="hidden" name="spamhiddenedv">
    And I still getting spam..

    • This reply was modified 5 years, 12 months ago by mibx.

    Hi,

    Please contact us by using the following email address: [email protected].

    We will help with pleasure.

    Thanks. Have a nice day.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘spam’ is closed to new replies.