# how to add username and password in HLS playback, or RTMP playback

**URL:** <https://community.wowza.com/t/how-to-add-username-and-password-in-hls-playback-or-rtmp-playback/37626>\
**Category:** Wowza Streaming Engine\
**Created:** [September 18, 2014, 7:10am UTC](https://community.wowza.com/t/how-to-add-username-and-password-in-hls-playback-or-rtmp-playback/37626 "2014-09-18T07:10:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [September 18, 2014, 7:10am UTC](https://community.wowza.com/t/how-to-add-username-and-password-in-hls-playback-or-rtmp-playback/37626/1 "2014-09-18T07:10:29Z")

</div>

Hi,

How do I define a username and password, like user1 and pass1, and in the HLS playback, it must include the username and password like this

[http://IP:1935/live/abcde/playlist.m3u8?user=user1&pass=pass1](http://IP:1935/live/abcde/playlist.m3u8?user=user1&pass=pass1)

is there any built-in module to do that?

Thanks

Chuck

---

<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:** [September 18, 2014, 10:53am UTC](https://community.wowza.com/t/how-to-add-username-and-password-in-hls-playback-or-rtmp-playback/37626/2 "2014-09-18T10:53:00Z")

</div>

Hi there,

Please take a look at this example:

[How to do file-based authentication with RTMP client and credentials in querystring of the RTMP URL (ModuleOnConnectAuthenticate2)](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2)

I hope this helps.

Salvadore

---

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [September 18, 2014, 8:15pm UTC](https://community.wowza.com/t/how-to-add-username-and-password-in-hls-playback-or-rtmp-playback/37626/3 "2014-09-18T20:15:50Z")

</div>

Hi,

Can I do this with HLS streaming? I actually will only use for HLS, not RTMP. Thanks

---

<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:** [September 19, 2014, 7:49am UTC](https://community.wowza.com/t/how-to-add-username-and-password-in-hls-playback-or-rtmp-playback/37626/4 "2014-09-19T07:49:20Z")

</div>

There is nothing built in that provides this functionality for HLS streams.

You would need to develop a custom module. A good starting place would be:

[How to limit playback by IP address (ModuleOverridePlayRestrictIP)](https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip%28ModuleOverridePlayRestrictIP%29)

Alternatively, this guide provides other methods for encrypting HLS streams:

[How to secure Apple HLS streaming using DRM encryption](https://www.wowza.com/docs/how-to-secure-apple-hls-streaming-using-drm-encryption)

Salvadore
