真奇怪,我的防盗链图片怎么不起作用呢
[i=s] 本帖最后由 zhoumo310 于 2012-6-27 10:00 编辑 [/i]我在wdcp后台网站管理里启用了防盗链,然后我测试了一下,盗链图片后,图片只会显示一个红叉,但是却不会显示我设置好的被盗链后默认显示的图片。我看了一下apache配置文件,好像也没问题啊,怎么就不能显示呢,求分析:apache配置文件里的内容如下(域名我已经替换成*****了):
[code]<VirtualHost *:80>
DocumentRoot /home/wwwroot/*****/public_html
ServerName *****.cn
ServerAlias www.*****.cn
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
CustomLog "/www/web_logs/*****.cn_access_log" common
ErrorLog "/www/web_logs/*****.cn_error_log"
php_admin_value open_basedir /home/wwwroot/*****:/tmp
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !*****.cn [NC]
RewriteCond %{HTTP_REFERER} !www.*****.cn [NC]
RewriteCond %{HTTP_REFERER} !bbs.*****.cn [NC]
RewriteRule .*.(gif|jpg)$ http://www.*****.cn/1daolian.gif [R,NC,L]
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /home/wwwroot/*****>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
[/code] 不要用同一个域名 [img]http://www.xingjiuba.com/data/attachment/forum/threadcover/8e/19/1434572.jpg[/img] [img]http://bbs163.net/attachment/Mon_1210/16_1_39bb6017f521bea.jpg?38[/img] 我的防盗链也是显示一个叉 不能显示指定图片 **** 该帖被屏蔽 **** nginx+apache的防盗链到底是要设置在nginx里还是apache里呀 **** 该帖被屏蔽 **** [img]http://dxqun.cn/data/attachment/forum/201306/21/011749llecpcrg9qceossd.gif[/img] [i=s] 本帖最后由 80000 于 2015-6-29 17:53 编辑 [/i]
[img]http://yule.163686.com/meinv.gif[/img] [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=12723&ptid=2548]3#[/url] [i]adamec[/i] [/b]
你是怎么设置的 我怎么不好使呢
页:
[1]