Apache配置防盗链

 在 <VirtualHost *:80>和</VirtualHost>之间增加下面配置

SetEnvIfNoCase Referer "^http://.*\.test\.com" local_ref

     <filesmatch "\.(txt|doc|mp3|zip|rar|jpg|gif)">

        Order Allow,Deny

        Allow from env=local_ref

        </filesmatch>


你可能感兴趣的:(.net)