# Restrict public access to subfolders in application content folder

**URL:** https://community.wowza.com/t/restrict-public-access-to-subfolders-in-application-content-folder/39688
**Category:** Wowza Streaming Engine
**Created:** [June 22, 2014, 7:13am UTC](https://community.wowza.com/t/restrict-public-access-to-subfolders-in-application-content-folder/39688 "2014-06-22T07:13:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)
#### Post date: [June 22, 2014, 7:13am UTC](https://community.wowza.com/t/restrict-public-access-to-subfolders-in-application-content-folder/39688/1 "2014-06-22T07:13:35Z")

</div>

Hi,

Assume we an application Test.

It points to some content folder.

We use: All types of supported streaming

We want:

1. Clients can play ONLY .stream files located at root folder.

2. Clients can’t play .stream files located at sub folders of content folder.

Any ideas appreciated

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [June 22, 2014, 1:51pm UTC](https://community.wowza.com/t/restrict-public-access-to-subfolders-in-application-content-folder/39688/2 "2014-06-22T13:51:17Z")

</div>

Hi there, I believe the StreamNameAlias AddOn will do the job for you here. You will want to use the aliasmap.play for your set up:

[How to get the StreamNameAlias AddOn](https://www.wowza.com/docs/how-to-get-the-streamnamealias-addon)

Salvadore

---

<div class="post-metadata">

### Author: ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)
#### Post date: [June 23, 2014, 10:44am UTC](https://community.wowza.com/t/restrict-public-access-to-subfolders-in-application-content-folder/39688/3 "2014-06-23T10:44:11Z")

</div>

Hi,

Looking at your other posts on similar subjects, you should be able to do it using the IMediaStreamNameAliasProvider interface and the method [here](http://community.wowza.com/t/-/39683) to handle the .stream files correctly.

It is much easier if you try to keep similar questions in the same thread instead of creating a new thread for every question.

Roger.
