需要帮助:如何隐藏流媒体链接! [英] Help needed: how to hide a streaming link!

查看:140
本文介绍了需要帮助:如何隐藏流媒体链接!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个流媒体链接,我想在网页上发布它,但我的目标是没有其他人可以使用该链接并在其他网站上发布。

我正在尝试要做的是创建一个java脚本函数或者在一个文件中分割多个部分的流式链接并在网页上调用它以便其他人看不到该链接,他们只能看到一个函数或域链接(不同于流式传输)当他们检查源代码时。



简而言之,流媒体链接应该是这样的:

http://流媒体。 video.com/user/password/video.ts



我希望链接显示为:

http:// www。 domain.com/video/player.ts



干杯。



我尝试了什么:



' 尝试如下:
我有一个名为straming.html的文件,这里是播放器的代码:
< pre lang =HTML> & lt; embed type =application / x-vlc-pluginname =VLCautoplay =yesloop =yesvolume =100width =640pxheight =320pxtarget =http ://DomaiNanme.com:8000 /现场/用户名/密码/ file.ts>
< / pre>

我想要的是使用JavaScript中的函数隐藏流媒体链接,例如:
< pre lang =Javascript> function streamingLink()
{
window.location.href =http:// DomainName:8000 / live / username / password / file.ts;
}< / pre>

如何在页面streaming.html上调用此函数streamingLink(),以便其他用户可以
链接其中​​ 托管。
干杯。

解决方案

引用:

如何隐藏流媒体链接!

简答:你没有。

无论你做什么,浏览器都会知道链接地址,只是因为没有链接就无法下载文件。



在链接中使用用户名/密码是一个坏主意。



解决方案是在服务器端创建临时链接,并使服务器仅在有限的时间内应答该链接。经过一段时间后,服务器不再回答。



Quote:

根据你的解决方案,纠正我,如果我错了,你说我需要操纵.htaccess文件或类似的东西。

不完全。

我从来没用过它,但是我知道在服务器端有一个进程的技术,该进程处理任何页面请求并查看页面是否真实。

如果页面不存在,则进程使用该地址知道它必须做什么。

动态网页 - 维基百科 [ ^ ]与服务器端脚本。

服务器端脚本 - 维基百科 [ ^ ]

I have a streaming link which I want to publish it on a web page, but my goal is that no one else can take that link and publish on other sites.
What I'm trying to do is to make a java script function or to split streaming link in many parts in one file and call it on a webpage so that other people can't see the link, they can see only a function or domain link (different from streaming link) when they check the source code.

In short, the streaming link should be like this:
http://streaming.video.com/user/password/video.ts

I want the link to be shown as:
http://www.domain.com/video/player.ts

Cheers.

What I have tried:

What I've tried is as following:
I have a file named straming.html and here is the code for the player:
<pre lang="HTML"> &lt;embed type="application/x-vlc-plugin" name="VLC" autoplay="yes" loop="yes" volume="100" width="640px" height="320px" target="http://DomaiNanme.com:8000/live/username/password/file.ts">
</pre>

All I want is to hide the streaming link using a function in JavaScript for example:
<pre lang="Javascript">function streamingLink()
{
	window.location.href="http://DomainName:8000/live/username/password/file.ts";
}</pre>

How to call this function streamingLink() on the page streaming.html so that other users can't se the link where the streaming is hosted.
Cheers.

解决方案

Quote:

how to hide a streaming link!

Short answer: you don't.
No matter what you do, there is a point where the browser will know the link address, simply because it can't download the file without the link.

Using "username/password" in the link is a bad idea.

A solution is to create a temporary link on server side and make the server answer to that link only for a limited period. After the period, the server don't answer anymore.

Quote:

According to your solution, correct me if I'm wrong, you are saying that I need to manipulate the .htaccess file or something similar.

Not exactly.
I have never used it, but I know there is a technic with a process on server side, the process handle any page request and see if the page is real or not.
If the page do not exist, the process use the address to know what it must do.
Dynamic web page - Wikipedia[^] with server side scripting.
Server-side scripting - Wikipedia[^]


这篇关于需要帮助:如何隐藏流媒体链接!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆