Board logo

标题: [已解决] 真奇怪,我的防盗链图片怎么不起作用呢 [打印本页]

作者: zhoumo310    时间: 2012-6-27 00:12     标题: 真奇怪,我的防盗链图片怎么不起作用呢

本帖最后由 zhoumo310 于 2012-6-27 10:00 编辑

我在wdcp后台网站管理里启用了防盗链,然后我测试了一下,盗链图片后,图片只会显示一个红叉,但是却不会显示我设置好的被盗链后默认显示的图片。我看了一下apache配置文件,好像也没问题啊,怎么就不能显示呢,求分析:apache配置文件里的内容如下(域名我已经替换成*****了):
  1. <VirtualHost *:80>
  2. DocumentRoot /home/wwwroot/*****/public_html
  3. ServerName *****.cn
  4. ServerAlias www.*****.cn
  5. ErrorDocument 400 /errpage/400.html
  6. ErrorDocument 403 /errpage/403.html
  7. ErrorDocument 404 /errpage/404.html
  8. ErrorDocument 405 /errpage/405.html
  9. CustomLog "/www/web_logs/*****.cn_access_log" common
  10. ErrorLog "/www/web_logs/*****.cn_error_log"
  11. php_admin_value open_basedir /home/wwwroot/*****:/tmp
  12. RewriteEngine on
  13. RewriteCond %{HTTP_REFERER} !^$ [NC]
  14. RewriteCond %{HTTP_REFERER} !*****.cn [NC]
  15. RewriteCond %{HTTP_REFERER} !www.*****.cn [NC]
  16. RewriteCond %{HTTP_REFERER} !bbs.*****.cn [NC]
  17. RewriteRule .*.(gif|jpg)$ http://www.*****.cn/1daolian.gif [R,NC,L]
  18. <IfModule mod_deflate.c>
  19. DeflateCompressionLevel 7
  20. AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
  21. AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
  22. </IfModule>
  23. </VirtualHost>
  24. <Directory /home/wwwroot/*****>
  25.     Options FollowSymLinks
  26.     AllowOverride All
  27.     Order allow,deny
  28.     Allow from all
  29. </Directory>
  30.         
复制代码

作者: admin    时间: 2012-6-27 08:43

不要用同一个域名
作者: adamec    时间: 2012-8-28 02:34


作者: bbs163    时间: 2012-10-28 13:34


作者: bbs163    时间: 2012-10-28 13:35

我的防盗链也是显示一个叉 不能显示指定图片
作者: Timon_zhao    时间: 2013-2-2 23:01

提示: 该帖被管理员或版主屏蔽
作者: Timon_zhao    时间: 2013-2-2 23:02

nginx+apache的防盗链到底是要设置在nginx里还是apache里呀
作者: Timon_zhao    时间: 2013-2-2 23:52

提示: 该帖被管理员或版主屏蔽
作者: dubaiyouyue    时间: 2013-6-21 17:45


作者: 80000    时间: 2015-6-29 17:51

本帖最后由 80000 于 2015-6-29 17:53 编辑


作者: ivan2h    时间: 2017-8-1 19:04

回复 3# adamec


    你是怎么设置的 我怎么不好使呢




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2