# Disable Incomming streams

**URL:** <https://community.wowza.com/t/disable-incomming-streams/47776>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [November 28, 2016, 11:01pm UTC](https://community.wowza.com/t/disable-incomming-streams/47776 "2016-11-28T23:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tai\_Khuu](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tai\_Khuu](https://community.wowza.com/u/Tai_Khuu)\
**Post date:** [November 28, 2016, 11:01pm UTC](https://community.wowza.com/t/disable-incomming-streams/47776/1 "2016-11-28T23:01:30Z")

</div>

Hi,

I’m developing a Streaming application. We have a requirements that we need to allow administrator to be able to disable an In-comming live stream and block the user from keep on Streaming. I know we can use the rest endpoint to delete his or her user name and password. And there is a method call stopMediacasterStream but it didn’t work as expected. I also try different API like get the Stream and call stopPublishing on the IMediaStream, but it also not working. Could you please help me find the correct API that I need to use. Or is there an API that can support my need ?

Thanks,

Tai Khuu

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [January 4, 2017, 3:47pm UTC](https://community.wowza.com/t/disable-incomming-streams/47776/2 "2017-01-04T15:47:22Z")

</div>

Hi Tai

What type of encoder are you using? There are different methods to shut down a publisher depending on the type of incoming stream. For example, if you are using an RTMP publisher to push the stream to your Wowza server similar to GoCoder or Wirecast, you can use the `setShutdownClient()` method for the IClient method. Use of this method is illustrated in the [ModuleLimitPublishedStreamBandwidth](https://github.com/WowzaMediaSystems/wse-plugin-limitpublishedstreambandwidth/blob/master/src/com/wowza/wms/plugin/ModuleLimitPublishedStreamBandwidth.java).

Michelle
