mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-19 13:01:08 +00:00
Merge pull request #214 from wearespindle/master
Updated configuration docs to include AXES_IP_WHITELIST
This commit is contained in:
commit
fd8cf9aede
1 changed files with 2 additions and 2 deletions
|
|
@ -56,9 +56,9 @@ These should be defined in your ``settings.py`` file.
|
|||
* ``AXES_ONLY_USER_FAILURES`` : If ``True`` only locks based on user id and never locks by IP
|
||||
if attempts limit exceed, otherwise utilize the existing IP and user locking logic
|
||||
Default: ``False``
|
||||
* ``AXES_NEVER_LOCKOUT_WHITELIST``: If ``True``, users can always login from
|
||||
whitelisted IP addresses.
|
||||
* ``AXES_NEVER_LOCKOUT_WHITELIST``: If ``True``, users can always login from whitelisted IP addresses.
|
||||
Default: ``False``
|
||||
* ``AXES_IP_WHITELIST``: A list of IP's to be whitelisted. For example: AXES_IP_WHITELIST=['0.0.0.0']. Default: []
|
||||
* ``AXES_BEHIND_REVERSE_PROXY``: If ``True``, it will look for the IP address from the header defined at ``AXES_REVERSE_PROXY_HEADER``. Please make sure if you enable this setting to configure your proxy to set the correct value for the header, otherwise you could be attacked by setting this header directly in every request.
|
||||
Default: ``False``
|
||||
* ``AXES_REVERSE_PROXY_HEADER``: If ``AXES_BEHIND_REVERSE_PROXY`` is ``True``, it will look for the IP address from this header.
|
||||
|
|
|
|||
Loading…
Reference in a new issue