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

Contact Form Fields should accept the desired values #16815

Closed
MuhammedSwalihct opened this issue Aug 12, 2020 · 1 comment
Closed

Contact Form Fields should accept the desired values #16815

MuhammedSwalihct opened this issue Aug 12, 2020 · 1 comment
Labels
[Closed] Duplicate Duplicate of an existing issue. [Feature] Contact Form

Comments

@MuhammedSwalihct
Copy link

As of now, the contact form fields such as the "Date" selection field accepts any values making it easier for spam bots to fill out the forms with random letters and the form is being submitted without any warnings. So, if we make the fields accept only certain values (for example, the date field will only accept date values selected using the calendar), we can prevent this and at least get rid of the less-intelligent spambots.

In addition to this, introducing a simple form field like a math question or a field that can only accept a certain answer would also be a great alternative for beginner webmasters instead of opting for the reCaptcha and stuff. So, such features would definitely make the contact forms much better in terms of spam prevention. I am not saying that we can filter out 100% spam with this method, but at least the mailboxes or feedback sections won't fill out with 1000s of spam submissions.

@jeherve jeherve added [Feature] Contact Form [Closed] Duplicate Duplicate of an existing issue. labels Aug 12, 2020
@jeherve
Copy link
Member

jeherve commented Aug 12, 2020

Most of the contact form fields have types that match the value they expect, but the date field does not, indeed. It's a change we made a few years ago, in #7890. It may be worth revisiting this now that browsers may have better support for the date field than back then.

I'll update #7888 to mention the idea of bringing the date type back, as per your suggestion, thank you!

In addition to this, introducing a simple form field like a math question or a field that can only accept a certain answer would also be a great alternative for beginner webmasters instead of opting for the reCaptcha and stuff.

This is something we most likely will not implement in the Jetpack contact form, as such fields tend to be defeated quite easily by bots once they've discovered it. With a popular plugin such as Jetpack, that's something that tends to happen quite quickly.
To protect yourself against spam in contact forms, we recommend using Jetpack's Anti-spam solution; it also covers contact forms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Closed] Duplicate Duplicate of an existing issue. [Feature] Contact Form
Projects
None yet
Development

No branches or pull requests

2 participants