Rate limits¶
Attempts that can be guessed or abused are limited per client address (or per person when signed in): signing in, signing up, opening invitation links, sending invitations, erasing an account (ADR 0025).
Action |
Limit |
|---|---|
Opening or accepting an invitation link |
30 a minute per client address |
Sending or sending again an invitation to a home |
10 a minute and 50 a day per person |
Inviting to the instance |
10 a minute and 50 a day per administrator |
Signing up |
10 a minute and 60 a day per client address |
Erasing an account |
5 a minute per person |
Signing in, password reset |
allauth’s defaults |
Beyond a limit, the page for opening an invitation link, and allauth’s pages (signing in, signing up, password reset), answer 429. Sending an invitation, to a home or to the instance, and erasing an account on the web stay on their page with a message saying to try again later. The API answers 429 for all of them.
Which address¶
The client address is REMOTE_ADDR. Behind a reverse proxy it is the address
the proxy reports in X-Forwarded-For, and only when the proxy is listed in
HOUSECAIRN_FORWARDED_ALLOW_IPS; from any other peer the header is dropped, and
HouseCairn never reads it itself. A client that forges the header does not
change the address it is counted under. See Reverse proxy.