# Disable javascript injection for a specific process or based on user-agent

**URL:** <https://community.dynatrace.com/t/disable-javascript-injection-for-a-specific-process-or-based-on-user-agent/21729>\
**Category:** Open Q&A\
**Tags:** request-attributes, javascript\
**Created:** [August 29, 2019, 1:12pm UTC](https://community.dynatrace.com/t/disable-javascript-injection-for-a-specific-process-or-based-on-user-agent/21729 "2019-08-29T13:12:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilles\_djimi-ex](https://avatars.discourse-cdn.com/v4/letter/g/ad7895/32.png) [@gilles\_djimi-ex](https://community.dynatrace.com/u/gilles_djimi-ex)\
**Post date:** [August 29, 2019, 1:12pm UTC](https://community.dynatrace.com/t/disable-javascript-injection-for-a-specific-process-or-based-on-user-agent/21729/1 "2019-08-29T13:12:08Z")

</div>

We running at STIME inc a prerender to cache some url when they are requested from the googlebot.

I would like to know if it possible to to disable javascript injection for specific user-agent tag in the https request header (especially for googlebot crawler) or just disable the injection for a selected process group . Additionnaly I would like to know where in the infrastructure the injection take place ?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [August 29, 2019, 2:22pm UTC](https://community.dynatrace.com/t/disable-javascript-injection-for-a-specific-process-or-based-on-user-agent/21729/2 "2019-08-29T14:22:27Z")

</div>

In application settings you can pick user agents that should be monitored

If you know user agent for robots you can exclude monitoring there.

To exclude injection on single process you have to have dedicated process group for it because injection can be disabled on process group level. Go to edit and there you will have proper option. If you have in this process group processes that you still want to monitor you have to split it using proces group detection settings

In general agent should be injected on Webserver that is on frontend. So if you have Apache as reverse proxy for tomcat injection will be there.

Sebastian
