为什么fastdfs开启防盗链,图片有效,视频不需要token仍然可以播放或下载?

问题描述

为什么fastdfs开启防盗链,图片有效,视频不需要token仍然可以播放或下载?

if use token to anti-steal

default value is false (0)

http.anti_steal.check_token=true

token TTL (time to live), seconds

default value is 600

http.anti_steal.token_ttl=900

secret key to generate anti-steal token

this parameter must be set when http.anti_steal.check_token set to true

the length of the secret key should not exceed 128 bytes

http.anti_steal.secret_key=FastDFS1234567890

return the content of the file when check token fail

default value is empty (no file sepecified)

http.anti_steal.token_check_fail=/home/yuqing/fastdfs/conf/anti-steal.jpg

另外Nginx安装了fastdfs模块用于下载,为什么图片和压缩包都可以被有效限制,我的mp4文件不需要token就能播放下载?

时间: 2024-08-19 23:58:45

为什么fastdfs开启防盗链,图片有效,视频不需要token仍然可以播放或下载?的相关文章

破解防盗链图片的php函数

现在很多网站和论坛的图片都在使用防盗链技术,既然有防盗链,那么肯定就有破解防盗链的方法啦,下面小编就来为你提供一个破解防盗链图片的php函数.不过只支持jpg和gif 哦,如果想支持多种图处格式,大家可以做下修改. $url=$_GET['url']; $ext=pathinfo($url,PATHINFO_EXTENSION); if($ext!='jpg' && $ext!='gif'){ // 只支持jpg和gif readfile('/upload/2008120913055753

php怎样显示加速乐防盗链图片 一般的破解方法解决不了

问题描述 php怎样显示加速乐防盗链图片 一般的破解方法解决不了 php怎样在网站里显示加速乐防盗链图片 一般的破解方法解决不了 直接输地址可以正常显示 嵌到img标签就显示不了了http://pic.qyer.com/album/user/1104/78/QEhVRh0PYUs/index/670 解决方案 这张图片没问题.如果防盗链的话,你要自己写代码获取远程图片,设置好来源 http://www.poluoluo.com/jzxy/201406/277888.html 解决方案二: 用fi

使用PHP破解防盗链图片的一个简单方法_php技巧

有自己的主机一般都会设计"防盗链", 其实包括图片防盗链,和下载防盗链等,如:1.使用.htaccess设置防盗链 复制代码 代码如下: RewriteEngine onRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)?jb51.net/.*$ [NC]RewriteRule \.(gif|jpg)$ http://www.jb51.net/image.gif [R,L] 2.ngin

Nginx 防盗链(图片/文件/目录防盗链)

1.防盗链处理 通过REFERER判断  代码如下 复制代码 location ~ .*.(gif|jpg|jpeg|png|bmp|wma|mp3|swf)$ {       valid_referers none blocked server_names demo.hyzy120.com *.baidu.com:       if ($invalid_referer) {return 403;}     expires      30d; } #demo.hyzy120.com   允许的网

apache防盗链(图片/文件)多种方法

如果你有自己的服务器就请先对./conf/httpd.conf 文件做以下修改 找到:#LoadModule rewrite_module modules/mod_rewrite.so 把前面的 # 给去掉 找到等一个 AllowOverride None 改为 AllowOverride All 重启Apache2服务器 接下就是做一个 .htaccess 文件了,其 .htaccess 文件内容为  代码如下 复制代码 RewriteEngine on RewriteCond %{HTTP_

部分网站允许空白referer的防盗链图片的js破解代码_javascript技巧

Javascript源码: 复制代码 代码如下: function showImg( url ) { var imgid = Math.random(), frameid = 'frameimg' + imgid; window['img'+imgid] = '<img id="img" src=\''+url+'?kilobug\' /><script>window.onload = function() { parent.document.getElemen

php 破解防盗链图片函数_php技巧

复制代码 代码如下: <?php $url=$_GET['url']; $ext=pathinfo($url,PATHINFO_EXTENSION); if($ext!='jpg' && $ext!='gif'){ // 只支持jpg和gif readfile('/upload/20081209130557536.gif'); exit; } $file=md5($url).'.'.$ext; if(file_exists($file)){ readfile($file); exit

简单解决微信文章图片防盗链问题_php技巧

微信对外提供了API接口,让我们可以通过授权的方式获取到自己公众号里面的文章,或者你也可以通过爬虫去抓取微信的文章,但是微信的图片默认是不允许外部调用的 这里我找到了两种方案 第一种 在JS中提前把图片加载到本地,然后从本地缓存中读取图片 var showImg = function (url) { var frameid = 'frameimg' + Math.random(); window.img = '<img id="img" src=\'' + url + '?' +

JavaEE中使用Filter来实现图片的防盗链

一.防盗链图片的filter public class ImageRedirectFilter implements Filter { public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {   HttpServletRequest request = (HttpServletRequest) req;   Htt