Home > Back-end >  Best Practice to prevent form abuse Django
Best Practice to prevent form abuse Django

Time:12-22

What is the best way to limit form submissions in Django? The form should be only submitted 5 times from the same IP in one hour, is there a way to do that in Django?

I tried Django Ratelimit but it doesn't really work, because the traffic doesn't get blocked.

CodePudding user response:

Follow up answer.

I used Memcache to check if a user submitted the same form more than five times in a specific timeframe. Worked very well and is quite simple to do.

  • Related