# Protect HLS video stream behind access token

**URL:** <https://forum.acestream.media/t/protect-hls-video-stream-behind-access-token/3916>\
**Category:** Proposals and requests\
**Created:** [06.Сентябрь.2025 13:35:39 UTC](https://forum.acestream.media/t/protect-hls-video-stream-behind-access-token/3916 "2025-09-06T13:35:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iOntEidE](https://forum.acestream.media/letter_avatar_proxy/v4/letter/i/258eb7/32.png) [@iOntEidE](https://forum.acestream.media/u/iOntEidE)\
**Post date:** [06.Сентябрь.2025 13:35:39 UTC](https://forum.acestream.media/t/protect-hls-video-stream-behind-access-token/3916/1 "2025-09-06T13:35:39Z")

</div>

Browsing the HTTP API docs there are mentions of an access token, but that doesn’t seem to apply to video streams.

I need to expose my acestream engine to the internet, but would like to avoid unauthorized users from both starting the p2p connections on my host, and accessing the resulting HLS video stream. Is that possible currently?

My usecase is simply

```auto
<hostname>:6878/ace/manifest.m3u8?id=<id>

```

---

<div class="post-metadata">

**Author:** ![Benny](https://forum.acestream.media/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@Benny](https://forum.acestream.media/u/Benny)\
**Post date:** [08.Сентябрь.2025 10:10:23 UTC](https://forum.acestream.media/t/protect-hls-video-stream-behind-access-token/3916/2 "2025-09-08T10:10:23Z")

</div>

> [@iOntEidE](#):
>
> Is that possible currently?

No. You should “hide” Ace Stream engine behind proxy - reverse proxy as nginx/traefik or HTTP proxy: [GitHub - pepsik-kiev/HTTPAceProxy: New](https://github.com/pepsik-kiev/HTTPAceProxy) or [https://www.hls-proxy.com](https://www.hls-proxy.com) and use access control features in those apps.
