# IP addresses in auth0-forwarded-for header

**URL:** <https://community.auth0.com/t/ip-addresses-in-auth0-forwarded-for-header/185198>\
**Category:** Get Help\
**Tags:** documentation-request, customer-feedback\
**Created:** [April 9, 2025, 6:42am UTC](https://community.auth0.com/t/ip-addresses-in-auth0-forwarded-for-header/185198 "2025-04-09T06:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexei\_p](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexei_p/32/60242_2.png) [@alexei\_p](https://community.auth0.com/u/alexei_p)\
**Post date:** [April 9, 2025, 6:42am UTC](https://community.auth0.com/t/ip-addresses-in-auth0-forwarded-for-header/185198/1 "2025-04-09T06:42:00Z")

</div>

I’m logging in with password grant type and send client IP address with all hops it passes in `auth0-forwarded-for` header. However, I noticed that in the documentation it’s written that there should be a single IP address. My questions are:

1. Areyou going to change the behaviour?
2. Is it ok to send several IP addresses in auth0-forwarded-for?
3. Which of these addresses is used for bruteforce protection?

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [April 9, 2025, 4:07pm UTC](https://community.auth0.com/t/ip-addresses-in-auth0-forwarded-for-header/185198/3 "2025-04-09T16:07:18Z")

</div>

Hi @alexei_p,

Welcome to the Auth0 Community and thank you for your post!

> [@alexei\_p](#):
>
> Is it ok to send several IP addresses in auth0-forwarded-for?

Unfortunately you can not send multiple IP addresses in the _`auth0-forwarded-for` header_ since it is designed only for a single valid IPv6 or IPv4 address, otherwise you will receive a Failed Exchange error.

> [@alexei\_p](#):
>
> Which of these addresses is used for bruteforce protection?

- Only the IP address contained in the `auth0-forwarded-for` header is checked against the brute-force protection and suspicious IP throttling. However you can also add specific client IPs to the AllowLists to be ignored when triggering brute-force protection and suspicious IP throttling.

> [@alexei\_p](#):
>
> Areyou going to change the behaviour?

This is the intended behavior of an authorized header since the client needs to be authenticated within a flow and the `auth0-forwarded-for` header will only be accepted for authenticated calls with the Client Secret.

I would recommend checking our [Avoid Common Issues with Resource Owner Password Flow and Attack Protection](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow/avoid-common-issues-with-resource-owner-password-flow-and-attack-protection) documentaton.

Hope this helps.  
Best regards,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 23, 2025, 4:07pm UTC](https://community.auth0.com/t/ip-addresses-in-auth0-forwarded-for-header/185198/4 "2025-04-23T16:07:23Z")

</div>

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