代码:
<VirtualHost *:80>
ServerAdmin laogui@gmail.com
DocumentRoot D:/www/www.chinahtml.com
ServerName www.chinahtml.com
ServerAlias chinahtml.com
ServerAlias www.chinahtml.net
ServerAlias chinahtml.net
ServerAlias www.chinahtml.cn
ServerAlias chinahtml.cn
ErrorDocument 404 http://www.chinahtml.com/error.html
SetEnvIfNoCase Referer "^http://www.chinahtml.com" local_ref=1
SetEnvIfNoCase Referer "^http://chinahtml.com" local_ref=1
SetEnvIfNoCase Referer "^http://www.chinahtml.net" local_ref=1
SetEnvIfNoCase Referer "^http://chinahtml.net" local_ref=1
<FilesMatch "\.(gif|jpb|png|css|js|swf)">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>
</VirtualHost>









Apache 实现防盗链













平板模式