# Login attempts limit

By default:

* A given IP address can only send 5 login attempts per minute. This is to protect against brute force attacks.
* A user is locked out of Fabricate after 5 failed login attempts. Fabricate then sends an email message with instructions on how to unlock their account.

To customize these options for a self-hosted instance, in `.env`, set the following environment variables:

{% code overflow="wrap" %}

```apache
FABRICATE_MAX_LOGIN_ATTEMPTS_PER_MINUTE=  # Maximum times per minute that an IP address can attempt to log into Fabricate. Default: 5
FABRICATE_MAX_LOGIN_ATTEMPTS=  # Number of failed login attempts before lockout. Default: 5
```

{% endcode %}


---

# 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://docs.tonic.ai/fabricate/self-hosting-fabricate/configuring-fabricate/login-attempts-limit.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.
