防盗链的设置:
SetEnvIfNoCase Referer "^http://.*\.yangqiding\.com" local_ref
SetEnvIfNoCase Referer ".*\.yanghao\.net" local_ref
Order Allow,Deny
Allow from env=local_ref
Deny from all
故障现象:做好防盗链后,之前做的用户认证的都打不开了,还有好多本站的txt|doc|mp3|zip|rar|jpg|gif|png|js|css文件在本站打开时是403
故障解决:根据铭哥指点加一个空的referer
SetEnvIfNoCase Referer "^http://.*\.yangqiding\.com" local_ref
SetEnvIfNoCase Referer ".*\.yanghao\.net" local_ref
SetEnvIfNoCase Referer "^$" local_ref
Order Allow,Deny
Allow from env=local_ref
Deny from all
SetEnvIfNoCase Referer "^http://.*\.yangqiding\.com" local_ref
SetEnvIfNoCase Referer ".*\.yanghao\.net" local_ref
Order Allow,Deny
Allow from env=local_ref
Deny from all
故障现象:做好防盗链后,之前做的用户认证的都打不开了,还有好多本站的txt|doc|mp3|zip|rar|jpg|gif|png|js|css文件在本站打开时是403
故障解决:根据铭哥指点加一个空的referer
SetEnvIfNoCase Referer "^http://.*\.yangqiding\.com" local_ref
SetEnvIfNoCase Referer ".*\.yanghao\.net" local_ref
SetEnvIfNoCase Referer "^$" local_ref
Order Allow,Deny
Allow from env=local_ref
Deny from all
编辑回复