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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2021-03-17 我要评论
想了解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]

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们