注册新账号 登录
晓木虫 返回首页

晓木虫论坛
欢迎访问晓木虫论坛

博文

Apache 配置文件.htaccess防盗链方法

热度 1已有 4422 次阅读2017-7-25 15:42

RewriteCond %{REQUEST_URI} !^/allow/.*$
RewriteCond %{REQUEST_FILENAME} \.(gif|jpeg|png|jpg)$ [NC]
RewriteCond %{HTTP_REFERER} !baidu\.com [NC]
RewriteCond %{HTTP_REFERER} !so\.com [NC]
RewriteRule (.*) /allow/error.gif [R=301,NC,L]
Copyright © 2014-2025 emuchong.com All Rights Reserved. 晓木虫 保留所有权利