raksmart活动促销

分享

写回答

发帖

[提问] HM主机如何防盗连?

HostMonster HostMonster 10202 人阅读 | 16 人回复

发表于 2009-6-14 15:02:00 | 显示全部楼层 |阅读模式

我的HM主机是DZ论坛系统,虽然DZ论坛系统有防盗连功能,但是效果不好,而且无法用盗连替代图片。DZ论坛上有人推荐运用服务器功能防盗链,请高手指点一下?

    我想这么设置,当对方网站盗连我的图片的时候,显示我事先设置好的一个别的网站的图片。

回答|共 16 个

boro

发表于 2009-6-14 15:09:56 | 显示全部楼层

hotlink吧

一路同行

发表于 2009-6-14 15:39:54 | 显示全部楼层

在cpanel面板选择HotLink protect 可以开启防盗链

superchen

发表于 2009-6-14 17:35:59 | 显示全部楼层

紧急,按老大的方法启动了盗连保护,结果论坛出现
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@bbs.gxwargame.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at bbs.gxwargame.com Port 80

superchen

发表于 2009-6-14 17:37:26 | 显示全部楼层

我的论坛地址:
http://bbs.gxwargame.com/

一路同行

发表于 2009-6-14 18:02:03 | 显示全部楼层

应该是防盗链的htaccess规则和其他的冲突了
你把你.htaccess文件的内容贴上来看看

superchen

发表于 2009-6-14 18:25:59 | 显示全部楼层

查出原因了,确实是.htaccess文件的问题,我禁用了hotline。去DZ官方随便下来了个新的.htaccess覆盖,论坛正常了!
现在我把不正常的.htaccess传上来了。不知道老大有办法帮我弄个不冲突的.htaccess不?

.htaccess.rar

361 Bytes, 下载次数: 2173

tumour

发表于 2009-6-14 19:55:09 | 显示全部楼层

361 Bytes的包,为什么不直接贴上来。。

一路同行

发表于 2009-6-15 10:01:12 | 显示全部楼层

你的htaccess文件里是论坛静态化规则吧?
添加下面规则试试

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://(www/\.)?mydomain.com/.*$ [NC]

RewriteRule \.(gif|jpg|js|css)$ - [F]

superchen

发表于 2009-6-15 18:45:09 | 显示全部楼层

是伪静态规则呢。。。
用你的方法不行呢,加上之后整个论坛都变形了!~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

superchen

发表主题