view plaincopy to clipboardprint?<ifmodule mod_rewrite.c> #开启mod_rewrite引擎 RewriteEngine On #设置合法请求源
- <ifmodule mod_rewrite.c>
- #开启mod_rewrite引擎
- RewriteEngine On
- #设置合法请求源
- RewriteCond %{HTTP_REFERER} !^$ [NC]
- RewriteCond %{HTTP_REFERER} !zhangzhang.net [NC]
- RewriteCond %{HTTP_REFERER} !google.com [NC]
- RewriteCond %{HTTP_REFERER} !baidu.com [NC]
- RewriteCond %{HTTP_REFERER} !yahoo.com [NC]
- RewriteCond %{HTTP_REFERER} !msn.com [NC]
- RewriteCond %{HTTP_REFERER} !bloglines.com [NC]
- RewriteCond %{HTTP_REFERER} !feedburner.com [NC]
- RewriteCond %{HTTP_REFERER} !feedsky.com [NC]
- #指向警告页面
- RewriteRule .*\.(gif|jpg|png|mp3)$ outlink.gif [L,NC]
- </ifmodule>