wsgi - Limiting number of connections from bottlepy's `run`? -
is possible limit connections, restrict number of unique ip addresses; bottle's run
command?
all find this: http://bottlepy.org/docs/dev/deployment.html
in word, no.
there's no built-in way this. (you didn't include lot of detail, i'm making assumptions think might have in mind.) in theory (and only in theory--please don't go route), write bottle plug-in tracks connections , denies requests depending on access patterns. there many reasons shouldn't.
instead, should rely on web server (the 1 in bottle run in production--e.g., apache, nginx) handle this. example, here's discussion on rate limiting in apache.
sorry there's no "yes" answer; hope helps! cheers.
Comments
Post a Comment