apache防盗链

  1 RewriteEngine On
  2 #防盗连
  3 RewriteCond %{HTTP_REFERER} !^http://chinaz.com/.*$ [NC]
  4 #RewriteCond %{HTTP_REFERER} !^http://pma.local.com/.*$ [NC]
  5 RewriteCond %{HTTP_REFERER} !^http://localhost/.*$ [NC]
  6 #跳转
  7 #RewriteRule .*\.(gif|jpg|swf)$ http://www.chinaz.com/img/nolink.gif [R,NC]
  8 RewriteRule .*\.(gif|jpg|swf)$ nofind.jpg [NC]
  9 #防盗链

    A+
发布日期:2021年07月16日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: