1.利用rewrite确认你的apache能使用rewritemod
RewriteEngineon
RewriteCond%{HTTP_REFERER}!^http://linuxsky.net/.*$[NC]
RewriteCond%{HTTP_REFERER}!^http://linuxsky.net$[NC]
RewriteCond%{HTTP_REFERER}!^http://
DocumentRootD:/www/
ServerName
ServerAliasetoow.com
ServerAlias/error.html
SetEnvIfNoCaseReferer"^http://"local_ref=1
SetEnvIfNoCaseReferer"^http://etoow.com"local_ref=1
<FilesMatch"\.(gif|jpb|png|css|js|swf)">
OrderAllow,Deny
Allowfromenv=local_ref
</FilesMatch>
</VirtualHost>
