B
B
bQ12019-08-13 09:52:06
Django
bQ1, 2019-08-13 09:52:06

How to implement the appearance of recaptcha during flooding as in VK?

When flooding, for example, with messages in VK, a sign with a recaptcha appears. How can this be done using python + django?
The essence of the question is how to track what the user is dudosing))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-08-13
@bQ1

Write a middleware that caches the request time and number for each session (if there is one) or for each IP address (if there is no session) and checks against this cache that the current request does not come too often.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question