亲宝软件园·资讯

展开

apache urlrewrite防盗链 apache urlrewrite防盗链功能配置

人气:0
想了解apache urlrewrite防盗链功能配置的相关内容吗,在本文为您仔细讲解apache urlrewrite防盗链的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:apache,,urlrewrite,防盗链,下面大家一起来学习吧。
DocumentRoot /home/img
ServerName img.host.com
ErrorDocument 404 /
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://img.host.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.host.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg)$ http://img.host.com/forbidden.png [R,L]

加载全部内容

相关教程
猜你喜欢
用户评论