# Mixed results trying to use custom injection rules - better documentation?

**URL:** <https://community.dynatrace.com/t/mixed-results-trying-to-use-custom-injection-rules-better-documentation/20685>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, account-management, dynatrace-saas, documentation\
**Created:** [October 28, 2020, 4:49pm UTC](https://community.dynatrace.com/t/mixed-results-trying-to-use-custom-injection-rules-better-documentation/20685 "2020-10-28T16:49:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [October 28, 2020, 4:49pm UTC](https://community.dynatrace.com/t/mixed-results-trying-to-use-custom-injection-rules-better-documentation/20685/1 "2020-10-28T16:49:04Z")

</div>

On our PRD tenant we keep the Default Web Application disabled, but now and then we turn it on either when we are doing onboarding or to see what traffic we might be catching and want to define. With that said, we have some systems that are old and just do react well to RUM - as in they break.

I have been playing around with the custom injection rules attempting to exclude specific known traffic but it seems to be hit and miss. I am also not really finding much in terms of documentation on what you can and can not do with these rules.

For example, I would think that the below would not inject on any URL containing the example pattern.

Is that correct?

 ![27030-screen.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/7/e731cffe4a9bd8658cfc641acc8adcadc7320b0c.png)

Also I would like to not inject on specific domains. The problem is we have clusters so you could have something like this…

- [somedomain1.xxxxxxx.com](http://somedomain1.xxxxxxx.com)
- [somedomain2.xxxxxxx.com](http://somedomain2.xxxxxxx.com)
- [somedomain3.xxxxxxx.com](https://answers.dynatrace.com//somedomain3.xxxxxxx.com)

I tried a few things, but it seemed to be hit and miss. For example - URL contains: somedomain\*

I can not find any documentation on if wildcards can be used or not for these rules.

Can wildcards be used?

Is there a better method of not injecting via the Default Web Application on a straightforward method without the need for 50 “Do not inject” rules?

Thanks!

---

_[View the full topic](https://community.dynatrace.com/t/mixed-results-trying-to-use-custom-injection-rules-better-documentation/20685)._
