apache设置防盗链有效方法
代码如下 | 复制代码 |
<VirtualHost *:80> DocumentRoot d:/soft/soft ServerName zhutiai.com SetEnvIfNoCase Referer "^http://www.zhutiai.com" local_ref=1 <FilesMatch ".(txt|doc|mp3|zip|rar|jpg|gif)"> order Allow,Deny Allow from env=local_ref </FilesMatch> </VirtualHost> |
补充:Php教程,apache