# How to Stop an ongoing stream using HTTPprovider ?

**URL:** <https://community.wowza.com/t/how-to-stop-an-ongoing-stream-using-httpprovider/39934>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [August 27, 2015, 5:58pm UTC](https://community.wowza.com/t/how-to-stop-an-ongoing-stream-using-httpprovider/39934 "2015-08-27T17:58:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![projjwal\_sen](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@projjwal\_sen](https://community.wowza.com/u/projjwal_sen)\
**Post date:** [August 27, 2015, 5:58pm UTC](https://community.wowza.com/t/how-to-stop-an-ongoing-stream-using-httpprovider/39934/1 "2015-08-27T17:58:48Z")

</div>

Hi

I want to stop an ongoing stream using HTTPprovider. So that from an external script I can control that. Please, advice.

Actually I want to restrict unwanted stream from being publish.

Regards

projjwal

---

<div class="post-metadata">

**Author:** ![Andrew\_Ramberg](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Andrew\_Ramberg](https://community.wowza.com/u/Andrew_Ramberg)\
**Post date:** [August 28, 2015, 12:26pm UTC](https://community.wowza.com/t/how-to-stop-an-ongoing-stream-using-httpprovider/39934/2 "2015-08-28T12:26:23Z")

</div>

Hello,

You may find the following [article](https://www.wowza.com/docs/how-to-blacklist-a-stream-in-session-blackliststreams%28ServerListenerBanStreams%29) helpful as it describes how to “ban” streams in session.

Regards,

Andrew

---

<div class="post-metadata">

**Author:** ![projjwal\_sen](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@projjwal\_sen](https://community.wowza.com/u/projjwal_sen)\
**Post date:** [August 29, 2015, 1:42am UTC](https://community.wowza.com/t/how-to-stop-an-ongoing-stream-using-httpprovider/39934/3 "2015-08-29T01:42:46Z")

</div>

Hi Andrew,

Thank you for your great help. But still HTTP://[wowza-ip]:8086/ban showing only Server version. These are the following steps I followed.

1. I download WowzaServerAddOnCollection\_4.0.zip from [https://www.wowza.com/downloads/forums/collection/WowzaServerAddOnCollection\_4.0.zip](https://www.wowza.com/downloads/forums/collection/WowzaServerAddOnCollection_4.0.zip) and put wms-plugin-collection.jar file at /lib

2. Add com.wowza.wms.plugin.collection.serverlistener.ServerListenerBanStreams at Server \> Server Setup \> Server Listener

3. Don’t want to keep ban list so I had not those properties at Application’s propertiey panel.

4. then I add

com.wowza.wms.plugin.collection.http.HTTPProviderBanStreams

ban\*

admin-digest

at /conf/VHost.xml

then restart the server, but still not working. I think, I made some mistake. Please help (I am using Wowza 4.2)

Thank you

Projjwal

p.s. I fixed I put the HTTPProvider after HTTPServerVersion. now I just put that before HTTPServerVersion and its working just fine :). Thank you.

---

<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:** [August 28, 2015, 3:55pm UTC](https://community.wowza.com/t/how-to-stop-an-ongoing-stream-using-httpprovider/39934/4 "2015-08-28T15:55:57Z")

</div>

Hi Projjwal,

If you are seeing the Server version when calling http://[wowza-ip-address]:8086/ban URL, then your HTTPProviderBanStreams is likely in the incorrect order.

Make sure that you have this HTTPProvider as the last in the list:

```auto
					<HTTPProvider>
						<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
						<RequestFilters>*</RequestFilters>
						<AuthenticationMethod>none</AuthenticationMethod>
					</HTTPProvider>

```

This is the catch-all for all URL requests. Any HTTPProvider added after this entry will not be recognized.

Michelle
