P
P
Prochka2018-06-10 12:10:06
Fight against spam
Prochka, 2018-06-10 12:10:06

When the type='submit' button is pressed, a bunch of letters are sent in a row. How can I make sure that only one email is sent?

I put a google-captcha on the form, but spammers spam manually: they fill in the form fields, fill in the captcha, press the SEND button (type='submit') and not one, but several letters are sent at once. How to deal with it? Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-06-11
@402d

create a table in the database
ip, datetime, md5
in the script, read md5 from several form fields,
check the received hash against the table with the condition, for example, for the last 5 minutes
, if not, then send a letter, add it to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question