Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RECAPTCHA #4

Open
j-tosi opened this issue May 22, 2019 · 1 comment
Open

RECAPTCHA #4

j-tosi opened this issue May 22, 2019 · 1 comment
Labels

Comments

@j-tosi
Copy link

j-tosi commented May 22, 2019

How do I integrate RECAPTCHA into my form?

@madriverweb
Copy link

Alternatively, I have used something like a honeypot for about 15 years. It works great and doesn't require connecting with Google. Right before the stop editing note, add:

if ( !empty( $_REQUEST['dummyField'] ) || $_REQUEST['dummyField'] != '' || !empty($_REQUEST['Reset']) || !empty($_REQUEST['reset']))
{
header( "Location: https://www.yourdomain.com" );
die( "Your submission wasn't sent." );
}

Then in your form, put the dummyField as a text field and hide it with CSS display: none;

If a bot fills out all fields, the form will not process.

If too many humans are spamming your forms, you may have to use the reCaptcha, but I have found this method VERY effective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants