阅读背景:

apache 防盗链,缓存,不缓存的配置

来源:互联网 

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} .*\.(jpg|jpeg|png) [NC]
RewriteCond %{HTTP_REFERER} !localhost [NC]
RewriteRule .* b.png
ExpiresActive On
ExpiresByType image/jpeg "access plus 1 month" 
<FilesMatch "\.(gif)$">
 header set Cache-control "no-store,must-revalidate"
</FilesMatch>RewriteEngine on
RewriteCond %{REQUEST_FILENAME} .




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: