M
M
Maloy1232017-01-22 16:30:44
Programming
Maloy123, 2017-01-22 16:30:44

How to organize the protection of the "Verify phone number via SMS code" function?

Hello!
How to properly organize the protection of the "Verify phone number via SMS code" function on the site? To confirm the phone number, an SMS with a one-time code is sent to it, which must be entered on the site. Everything seems to be convenient. But! After all, maybe some not a good person can start driving in "left" numbers there and SMS will be sent to them, respectively, there will be undesirable SMS sending and extra costs. How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Pogrebnyak, 2017-01-22
@S0HardCore

Limit the number of confirmations per IP. Save the phone in cookies and prevent changing the number (entering another one) more than once every X hours.

T
ThunderCat, 2017-01-22
@ThunderCat

Everything is like with any spam protection - ip, captcha, cookies, nothing new has been invented yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question