# Is it possible to prevent applications instances from being created automatically?

**URL:** <https://community.wowza.com/t/is-it-possible-to-prevent-applications-instances-from-being-created-automatically/55056>\
**Category:** Wowza Streaming Engine\
**Created:** [April 27, 2020, 2:50pm UTC](https://community.wowza.com/t/is-it-possible-to-prevent-applications-instances-from-being-created-automatically/55056 "2020-04-27T14:50:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Reiswig](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Ken\_Reiswig](https://community.wowza.com/u/Ken_Reiswig)\
**Post date:** [April 27, 2020, 2:50pm UTC](https://community.wowza.com/t/is-it-possible-to-prevent-applications-instances-from-being-created-automatically/55056/1 "2020-04-27T14:50:22Z")

</div>

We use the connectioncount api call in order to update our live administration console with new sources. If an application instance is added to our live app the xml returned from connection count is formatted in such a way that our php script fails to parse it correctly.

We would like to prevent application instances from being created and want to assure that all streams are listed under the _definist_ application instance. It seems a new application instance is automatically created if an encoder sends a stream with an additional path component ie. rtmp:///live/\<appi\_instance\>/\<stream\_name\>. This also seems to occur if a resource is requested from the wowza host with an additional path component ie. https:///phlive/\<app\_instance\>/\<stream\_name\>/chunklist.m3u8. In both these scenarios, if the application instance doesn’t exist, wowza automatically creates one, is it possible to disable or prevent this behavior?

---

<div class="post-metadata">

**Author:** ![Cassidy\_Reilly](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Cassidy\_Reilly](https://community.wowza.com/u/Cassidy_Reilly)\
**Post date:** [April 28, 2020, 4:13pm UTC](https://community.wowza.com/t/is-it-possible-to-prevent-applications-instances-from-being-created-automatically/55056/2 "2020-04-28T16:13:36Z")

</div>

As far as stopping them from being automatically created it can be done, but with some custom java work.

There are ways to force a new one to a certain application or instance as you can see here:

**For RTMP:**

[https://www.wowza.com/docs/how-to-do-server-side-redirect-of-rtmp-connections-from-one-application-to-another](https://www.wowza.com/docs/how-to-do-server-side-redirect-of-rtmp-connections-from-one-application-to-another)

**For HTTP:**

-you can check the url with this interface and return false if it is invalid.

[https://www.wowza.com/resources/serverapi/com/wowza/wms/vhost/IVHostHTTPStreamerRequestValidator.html](https://www.wowza.com/resources/serverapi/com/wowza/wms/vhost/IVHostHTTPStreamerRequestValidator.html)

**For RTSP:**

**[https://www.wowza.com/resources/serverapi/com/wowza/wms/vhost/IVHostRTSPRequestValidator.html](https://www.wowza.com/resources/serverapi/com/wowza/wms/vhost/IVHostRTSPRequestValidator.html)**
