如何为$从互联网下载管理IDM p $ pvent文件热链接 [英] How To Prevent File HotLink from Internet Download Manager IDM

查看:228
本文介绍了如何为$从互联网下载管理IDM p $ pvent文件热链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有上午的一些问题修复的媒体文件热链接或下载使用IDM,我正在使用PHP提供的视频文件,它工作正常,但我注意到,安装在我的计算机上的IDM能添加下载框,我的视频播放使用jwplayer。 予改变的code中的结构和加入的htaccess重写链路,使得直接访问该文件不显示

Am having some issue fixing media file hotlink or download using IDM, am working on serving a video file using PHP and it works fine, but I notice that IDM installed on my computer was able to add download box to the video I am playing using jwplayer. I change the structure of code and added htaccess to rewrite the link, so that the direct access to the file is not display.

mysite.com/file.php?myvideo.flv - > mysite.com/api/file/JU78vhx5uh

我能够在JWPlayer实现这一点,它用PHP发球时的作品,但同样的IDM迎接我的视频文件,我寻找其他的装置,该装置htaccess以及它低于

I was able to implement this in JWPlayer and it works when serving with PHP, yet the same IDM fetch my video file, I search for other means which is htaccess and it is below

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]

RewriteCond %{HTTP_REFERER} !^$

RewriteRule .*\.(mp4|flv|mp4|mp3)$ /video/thieve.flv [L]

这对于网页浏览器只工作,不停止IDM软件,我发现了另一个PHP引荐验证,该检查refere链接。

This only work for web browsers and doesn't stop IDM software, I found another PHP referer validator, which check the refere link.

if (strpos($_SERVER['HTTP_REFERER'],'mysite.com')===0)

 {
    header("Location: whatever.php"};
 }else{
    header("Location: index.php");
 }

注:我发现,IDM发送信息给我的脚本

NB: I found out that IDM sent this information to my script

  1. USER AGENT:<$c$c>Mozilla/4.0%20(compatible;%20MSIE%208.0;%20Windows%20NT%206.0;%20Trident/4.0)

HTTP_REFERER: mysite.com/api/file/JU78vhx5uh (同​​样用在我的视频被播放的页面)

Http_referer:mysite.com/api/file/JU78vhx5uh (the same with the page where my video is been played).

请怎么回事,我该prevent从本软件热链接,因为这个网站提供免费的视频流媒体,我不希望我的视频下载。

Please how else am I to prevent hot-linking from this software, because this website is serving free video streaming and I don't want my video downloaded.

推荐答案

在一般情况下,从网上下载的视频,以prevent用户的唯一途径是通过服务器真正串流。而模拟流,通过展示已经preloaded视频帧将始终是非法侵入的一种方式或其他,因为最终你需​​要播放软件知道地址 - 这当然是全面的.avi /。 MP4 / .whatever。

In general, the only way to prevent users from downloading your videos is to really stream them via the server. The "emulated streaming" via showing already preloaded video frames will be always "hackable" one way or the other, because in the end you need the player software to know the address - which of course is the full .avi/.mp4/.whatever.

有相当长的一段流媒体服务器,也有一些开放源代码的人都可用。一个很好的出发点可能是此列表。对于Linux,达尔文可能是最好的选择之一。

There are quite some streaming servers, also some open source ones are available. A good starting point may be this list. For Linux, Darwin might be one of the best options.

一旦你真的流内容,只有非常先进的用户将能够使用streamgrabbers(我认为甚至有服务器,如果这也不行,例如Adobe的流媒体解决方案),以抓住你的内容。

Once you really stream your content, only very advanced users will be able to grab your content by using streamgrabbers (I think there are even servers where this does not work, e.g. Adobes streaming solutions).

这篇关于如何为$从互联网下载管理IDM p $ pvent文件热链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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