• Hello,
    I’m extending a CF7 form to implement a little lottery.
    I already developed the custom validation on the lottery number to check if it is correct, and works smoothly.
    The only problem is that I want to preclude a brute force, and I was going to rest assured with the CF7 built-in recaptcha. The only problem is that the recaptcha check is performed AFTER all validation checks, so a smart user can still try a brute force of my lottery.
    Can you guys tell me if there is a way to check the recaptcha before performing my custom validation?

    Thank you for your help,

Viewing 1 replies (of 1 total)
  • Thread Starter llago

    (@llago)

    Hi, adding up:
    for now, I resolved modifying a little the plugin (I know, not a best practice), around line 187 of include/submission.php you can find a chain of elseif and you can change the order of the checks.

    However, I was wondering:
    should this order, spam check before validation check, be standard? I mean, if the validations are quite a lot or if there is some kind elaborate validation, I don’t want to perform them if the submitted form is spam.

    What do you think?

Viewing 1 replies (of 1 total)

The topic ‘Recaptcha check BEFORE other validations’ is closed to new replies.