security - Are there any service I could use to limit user flooding request to my server -


i using cloud database service, cloudant specific, can let every user access directly database authorization system

however service scale , count billing each , every access server, 0.0015$ per 500 request

so thinking service act proxy or cdn or firewall, limit user access frequency per minute

for example reject user if person make more 20 requests per minute or more 2 requests per second, protect user try flood request service

are there service this? called? , may suggest me?

thank much

some cdns offer this, have contact sales/support teams or check documentation. however, if have access server can install nginx, has request limiting features might want.

it's in "limit req" module. configurations work in case:

http {     limit_req_zone $binary_remote_addr zone=dbzoneip:10m rate=2r/s;     # or limit_req_zone $binary_remote_addr zone=dbzoneip:10m rate=20r/m;     # can set if want limit total requests,     # regardless of incoming ip     limit_req_zone $server_name zone=dbzoneserver:10m rate=100r/m;      # whatever path db api     location /db/ {         # use        # check docs determine if want enable bursting        # allows buffer small number of requests        limit_req zone=dbzoneip;          # comment out if want limit particular users        limit_req zone=dbzoneserver;         proxy_pass https://url_or_ip_of_cloudant;     } } 

Comments