# Exclude scanning ip addresses from Services

**URL:** <https://community.dynatrace.com/t/exclude-scanning-ip-addresses-from-services/45000>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, services-classic\
**Created:** [April 4, 2024, 8:23am UTC](https://community.dynatrace.com/t/exclude-scanning-ip-addresses-from-services/45000 "2024-04-04T08:23:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akerimde](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Akerimde](https://community.dynatrace.com/u/Akerimde)\
**Post date:** [April 4, 2024, 8:23am UTC](https://community.dynatrace.com/t/exclude-scanning-ip-addresses-from-services/45000/1 "2024-04-04T08:23:15Z")

</div>

Hello,

I have a list of ip addresses and I want to exclude requests coming from these ip addresses from all services in the environment. Is there a method to define these ip addresses globally and exclude them from services?

Thanks for your supportTa

---

<div class="post-metadata">

**Author:** ![MichalOlszewski](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@MichalOlszewski](https://community.dynatrace.com/u/MichalOlszewski)\
**Post date:** [April 4, 2024, 9:40am UTC](https://community.dynatrace.com/t/exclude-scanning-ip-addresses-from-services/45000/2 "2024-04-04T09:40:31Z")

</div>

Hi&nbsp;[@Akerimde](https://community.dynatrace.com/user/74205)&nbsp;,

I have solution for You - but it’s not truly and fully global.  
As I understand You want to remove some of requests (coming from specific IPs) from service calculations. Without more details I can only suggest generalized solution.

You can create request Attribute (globally) to capture incoming (Client) IP.  
Then You can create global RequestNaming Rule to rename requests as ex. “unimportant-requests” with condition on IP being X.X.X.X (or regexp or anything You like).  
Then having that You can MUTE those requests on each service that is being called from those IP.  
You can easily identify them using created request attribute.

2 of 3 steps are global - unfortunately Mute is only per Service - so some effort or automation via API is required.

Bests  
Michal

---

<div class="post-metadata">

**Author:** ![Akerimde](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Akerimde](https://community.dynatrace.com/u/Akerimde)\
**Post date:** [April 5, 2024, 8:45am UTC](https://community.dynatrace.com/t/exclude-scanning-ip-addresses-from-services/45000/3 "2024-04-05T08:45:24Z")

</div>

Hi&nbsp;MichalOlszewski,

We already have a request attribute (globally) and we use it when defining a service-specific definition.

How can I do that globally :&nbsp;_Then You can create global RequestNaming Rule to rename requests as ex. “unimportant-requests” with condition on IP being X.X.X.X (or regexp or anything You like)._

Thank you

---

<div class="post-metadata">

**Author:** ![MichalOlszewski](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@MichalOlszewski](https://community.dynatrace.com/u/MichalOlszewski)\
**Post date:** [April 8, 2024, 12:56pm UTC](https://community.dynatrace.com/t/exclude-scanning-ip-addresses-from-services/45000/4 "2024-04-08T12:56:29Z")

</div>

Hi&nbsp;[@Akerimde](https://community.dynatrace.com/user/74205)&nbsp;,

via API and You can review then via UI:

 ![MichalOlszewski_0-1712580939304.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/4/5455eae98619c3ab2428a628aba1cffefb97a2ac.png)

Below link with documentation how to do so:

> **[Request naming API](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/service-api/request-naming-api)**
>
> Learn what the Dynatrace request naming config API offers.

Bests  
Michal
