Forums

Django-ratelimit gets the same IP 10.0.0.2**

Login failed: username 'admin', IP 10.0.0.2**

Is it possible to pass the real user IP in? I use it for sign up/log in/password reset rate limiting.

Another independent error is:

UserWarning: No request passed to the backend, unable to rate-limit. Username was 'xxx'

Here you go: https://help.pythonanywhere.com/pages/WebAppClientIPAddresses/

OK thanks! It seems that django-ratelimit package did not use HTTP_X_REAL_IP.