title: Are there a way to block queries that come to another server?
body: <p>I made a Json web token to protect my services but now somebody has made a lot of queries on my data base using my login service. Are there a way to block queries that come to another server?</p>
  <p>The queries or attacks to my server come from different ips and different countries.</p>
  <p>I use angular 9 and asp.net core.</p>
  <pre><code>// POST: api/Login
      [HttpPost]
      [AllowAnonymous]
      public async Task&lt;IActionResult&gt; Login(UsuarioLogin usuarioLogin)
      {
          var _userInfo = await AutenticarUsuarioAsync(usuarioLogin.Usuario, usuarioLogin.Password);
          if (_userInfo != null)
          {
              return Ok(new { token = GenerarTokenJWT(_userInfo) });
          }
          else
          {
              return Unauthorized();
          }
      }
  </code></pre>