mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Use 4 space indentation in config docs
This commit is contained in:
parent
769103a090
commit
8ed798c155
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ following settings to suit your set up to correctly resolve client IP addresses:
|
|||
|
||||
# refer to the Django request and response objects documentation
|
||||
AXES_META_PRECEDENCE_ORDER = [
|
||||
'HTTP_X_FORWARDED_FOR',
|
||||
'REMOTE_ADDR',
|
||||
'HTTP_X_FORWARDED_FOR',
|
||||
'REMOTE_ADDR',
|
||||
]
|
||||
|
||||
Please note that proxies have different behaviours with the HTTP headers. Make sure that your proxy either strips the incoming value or otherwise makes sure of the validity of the header that is used because **any header values used in application configuration must be secure and trusted**. Otherwise the client can spoof IP addresses by just setting the header in their request and circumvent the IP address monitoring. Normal proxy server behaviours include overriding and appending the header value depending on the platform. Different platforms and gateway services utilize different headers, please refer to your deployment target documentation for up-to-date information on correct configuration.
|
||||
|
|
|
|||
Loading…
Reference in a new issue