# Prevent Dynatrace from adding a x-dynatrace header

**URL:** <https://community.dynatrace.com/t/prevent-dynatrace-from-adding-a-x-dynatrace-header/39548>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-monitoring, request-attributes\
**Created:** [May 2, 2023, 1:32pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-from-adding-a-x-dynatrace-header/39548 "2023-05-02T13:32:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nils\_stellhorn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nils_stellhorn/32/20154_2.png) [@nils\_stellhorn](https://community.dynatrace.com/u/nils_stellhorn)\
**Post date:** [November 12, 2024, 10:01am UTC](https://community.dynatrace.com/t/prevent-dynatrace-from-adding-a-x-dynatrace-header/39548/4 "2024-11-12T10:01:56Z")

</div>

Hello,

I just stumbled over your post now, because I have a similar problem, where we need to stop the H-Dynatrace header from being added for a specific request.

I think the best way to do this is to add the URL path you would like to exclude under the ‘URL-based sampling’ setting. You have to switch on the toggle for 'Ignore URLs with specific path and/or query parameters.

 ![nils_stellhorn_0-1731394761399.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/3/d31b72ee1405eb8433fb6203f567216a2d745ae7.png)

More about that solution here: [Adaptive Traffic Management with Dynatrace Platform Subscription (DPS) — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/url-sampling)

Another possibility is, to exclude the web request under ‘Deep monitoring’ → ‘Exclude specific incoming web request URLs’.

 ![nils_stellhorn_0-1731405664312.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/93b100e07fb836dd4a8e6a705ce6f215ac18e992.png)

Here you can define URL paths that you would like to exclude from monitoring and alerting. I am not sure though, if this also prevents the x-dynatrace header from being set.

---

_[View the full topic](https://community.dynatrace.com/t/prevent-dynatrace-from-adding-a-x-dynatrace-header/39548)._
