# Difference between Insert X-Forwarded-For and Accept XFF?

**URL:** <https://community.f5.com/t/difference-between-insert-x-forwarded-for-and-accept-xff/72794>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [July 29, 2023, 1:11pm UTC](https://community.f5.com/t/difference-between-insert-x-forwarded-for-and-accept-xff/72794 "2023-07-29T13:11:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![レザ](https://avatars.discourse-cdn.com/v4/letter/%E3%83%AC/3da27b/32.png) [@レザ](https://community.f5.com/u/%E3%83%AC%E3%82%B6)\
**Post date:** [July 29, 2023, 1:11pm UTC](https://community.f5.com/t/difference-between-insert-x-forwarded-for-and-accept-xff/72794/1 "2023-07-29T13:11:00Z")

</div>

Hello  
What is the difference between Insert X-Forwarded-For and Accept XFF in http profile?  
Is it possible to enable both of these items in a custom http profile?

Do they have priority over each other or not?

Thanks

---

<div class="post-metadata">

**Author:** ![Enes\_Afsin\_Al](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/enes_afsin_al/32/15359_2.png) [@Enes\_Afsin\_Al](https://community.f5.com/u/Enes_Afsin_Al)\
**Post date:** [July 29, 2023, 6:57pm UTC](https://community.f5.com/t/difference-between-insert-x-forwarded-for-and-accept-xff/72794/2 "2023-07-29T18:57:18Z")

</div>

Hi&nbsp;レザ,

Accept XFF option does not insert a request header.

**Accept XFF:** &nbsp;Enables or disables trusting the client IP, and statistics from the client IP address, based on the request’s X-Forwarded-For (XFF) headers, if they exist.

**Note:** This option has an effect only when you use either&nbsp;AVR&nbsp;or&nbsp;ASM L7 DoS profile (ASM required). For&nbsp;AVR, the&nbsp;Accept XFF&nbsp;option allows the BIG-IP system to trust and take into consideration IP addresses from the&nbsp;X-Forwarded-For&nbsp;header for statistics purposes. For an L7 DoS profile, the&nbsp;Accept XFF&nbsp;option allows the BIG-IP system to take action based on IP addresses from the&nbsp;X-Forwarded-For&nbsp;header that match, for example, an Access List.

**Insert X-Forwarded-For:** When using connection pooling, which allows clients to make use of existing server-side connections, you can insert the X-Forwarded For header with the client IP address into a request. When you configure the BIG-IP system to insert this header, the target server can identify the request as coming from a client other than the client that initiated the connection.

**K40243113: Overview of the HTTP profile**  
_[myF5](https://my.f5.com/manage/s/article/K40243113)_
