# Rate limiting on Login page

**URL:** <https://discuss.openedx.org/t/rate-limiting-on-login-page/6180>\
**Category:** Site Operators\
**Created:** [December 1, 2021, 1:25pm UTC](https://discuss.openedx.org/t/rate-limiting-on-login-page/6180 "2021-12-01T13:25:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chintan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/chintan/32/52_2.png) [@chintan](https://discuss.openedx.org/u/chintan)\
**Post date:** [December 1, 2021, 1:25pm UTC](https://discuss.openedx.org/t/rate-limiting-on-login-page/6180/1 "2021-12-01T13:25:47Z")

</div>

Hello,

I am using openedx-release/lilac.master

It’s a multi-tier server architecture.

On /login or /register page I get an error page saying  
" Too Many Requests. "

I checked the logs of nginx access and error logs, I checked tracking logs

All of them shows only one request to login page.

Those URL directly load with this error and status being 429.

Are there any settings that I need to check ?

If I disable the `RATELIMIT_ENABLE` flag it works fine.

---

<div class="post-metadata">

**Author:** ![pdpinch](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/pdpinch/32/36_2.png) [@pdpinch](https://discuss.openedx.org/u/pdpinch)\
**Post date:** [December 2, 2021, 12:47pm UTC](https://discuss.openedx.org/t/rate-limiting-on-login-page/6180/2 "2021-12-02T12:47:58Z")

</div>

We had the same problem (discovered when the site went into production!).

We addressed it by setting two keys:

```auto
REGISTRATION_RATELIMIT: 1000000/minute
RATELIMIT_RATE: '600/m' 

```

As far as I can tell, these aren’t documented anywhere. I think `REGISTRATION_RATELIMIT` is relevant to the issue you hit. I think `RATELIMIT_RATE` applies to OAuth.

---

<div class="post-metadata">

**Author:** ![chintan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/chintan/32/52_2.png) [@chintan](https://discuss.openedx.org/u/chintan)\
**Post date:** [December 7, 2021, 11:54am UTC](https://discuss.openedx.org/t/rate-limiting-on-login-page/6180/3 "2021-12-07T11:54:45Z")

</div>

Same thing, noticed it in almost production

It was working with `RATELIMIT_ENABLE`  
I tried to remove the flag before setting the keys you mentioned @pdpinch but to my surprise it worked even without it.

Must’ve been some other misconfiguration somewhere else. ¯\_(ツ)\_/¯

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [March 7, 2022, 11:55am UTC](https://discuss.openedx.org/t/rate-limiting-on-login-page/6180/4 "2022-03-07T11:55:14Z")

</div>

Closed on March 7, 2022, 11:55am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
