M
M
Michael2017-04-10 08:50:55
JavaScript
Michael, 2017-04-10 08:50:55

Restrictions in input as spam protection?

Hello.

There is a feedback form with 4 fields (Name, Phone, E-mail, Message).

If only Russian letters are allowed in the Name field, only numbers are allowed in the Phone field, and only Latin letters + numbers + dot-dash-dot are allowed in the E-mail field - will these spam manipulations help? Or is all this safely managed by spam bots and you can’t do without captcha?

Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Froggyweb, 2017-04-10
@Froggyweb

You can try to make a fake field and check it if it is filled then the form is not sent

M
Maxim Timofeev, 2017-04-10
@webinar

Either captcha or pre-authorization and only through trusted social networks and that is not a panacea, but a way to significantly reduce the amount of spam

A
Andrey Fedorov, 2017-04-10
@aliencash

Spam bots attack not the form, but the script handler. Accordingly, everything that you do on the client side, in html or js, will not save you. Validation on the server side + blacklists of ip addresses is needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question