# 9.8 Seguridad Mejorando tu código

En esta sección voy a explicar cómo realizar las mejoras de seguridad.&#x20;

1. [Limitar el número de intentos incorrectos](/net-core/7.-seguridad/7.8-mejorando-tu-codigo/7.8.1-como-limitar-el-numero-de-intentos-incorrectos-en-el-login.md), por ejemplo después de 5 intentos incorrectos mandar un mail con un código que el usuario debe teclear para acceder a su cuenta.
2. [Registrar la ciudad (mediante la ip)](/net-core/7.-seguridad/7.8-mejorando-tu-codigo/7.8.2-como-obtener-la-ciudad-del-usuario-por-medio-de-la-ip.md) de donde se conectan normalmente tus usuarios, para que si un usuario se conecta de otra ciudad diferente envies un email notificando el acceso.
3. [Cors](/net-core/7.-seguridad/7.8-mejorando-tu-codigo/7.8.3-configurando-cors.md) el cual restringe las urls que pueden acceder a tus servicios desde un navegador web


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://abi.gitbook.io/net-core/7.-seguridad/7.8-mejorando-tu-codigo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
