【问题标题】:Hide m3u8 file with php or html用 php 或 html 隐藏 m3u8 文件
【发布时间】:2020-09-08 18:37:19
【问题描述】:

我有一个来自外部服务器的 .m3u8 文件。

示例:(https://rt-usa.secure.footprint.net/1105.m3u8?streamType=live) 来自 RT 的免费电视信号。

是否可以使用域“隐藏”m3u8 路由?

示例:www.mysite.com/stream/rt.php

并且当它在VLC或类似的播放器中播放时,它通过直接读取源url来再现内容。

【问题讨论】:

  • 您尝试过重定向吗?将此代码放在 rt.php rt-usa.secure.footprint.net/1105.m3u8?streamType=live'); ?>
  • 是的,我之前试过了,但是没用,谢谢
  • 我用你的代码试了一下,效果很好。在我尝试之前:<script>if(window==window.top){window.location.replace("https://rt-usa.secure.footprint.net/1105.m3u8?streamType=live");}var url = new URL(window.location.href);var refDom = url.hostname;</script>
  • 你要做的是做一个代理服务器。是的,这是可能的。
  • @slowdmelendez360 无法使用 javascript,VLC 媒体不支持 javascript 执行,因此您不会被重定向。

标签: php html video-streaming m3u8


【解决方案1】:

可能的方法:

  1. 使用 php 文件插入重定向标头

<?php header('Location: rt-usa.secure.footprint.net/1105.m3u8?streamType=live');

  1. 在 .htaccess (Apache) 或 NGinx 中。

【讨论】:

    猜你喜欢
    • 2013-04-15
    • 2015-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-14
    • 2014-06-23
    • 2023-03-10
    相关资源
    最近更新 更多