Welcome! Log In Create A New Profile


Completely discard second POST when sent in under 500ms?

Posted by talkingnews 
Completely discard second POST when sent in under 500ms?
April 30, 2018 04:04AM
I would like to completely discard (not buffer, queue or respond to) any POST request from a user within 500ms (preferably cookie based maybe?)
I've looked at https://www.nginx.com/blog/rate-limiting-nginx/ but not sure it "fits".

Basically, nginx is sitting in front of phpbb forum software, and it looks like when someone accidentally double-clicks (usually between 100-200ms), then two posts get made, I think because the server takes about 200ms to respond. phpbb is supposed to have inbuilt "flood control" of 15 seconds, but I guess it can't check the DB before the next request comes in.

So to silent reject the second click would be ideal.

Edited 1 time(s). Last edit at 04/30/2018 04:14AM by talkingnews.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready