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 #防盗链