虚拟主机域名注册-常见问题 → 虚拟主机问题 → 虚拟主机问题 | |||||||
通过重写规则实现屏蔽ip访问,港台多线主机可用
注:根据需求修改(8.8.4.4|8.8.8.)ip范围 <IfModule mod_rewrite.c> RewriteEngine On #Block ip RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR} (8.8.4.4|8.8.8.) [NC] RewriteRule (.*) - [F] </IfModule>
<IfModule mod_rewrite.c> RewriteEngine On #Block ip RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR} (8.8.4.4|8.8.8.) [NC] RewriteRule (.*) - [F] </IfModule>
<IfModule mod_rewrite.c> RewriteEngine On #Block ip RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR} (8.8.4.4|8.8.8.) [NC] RewriteRule (.*) - [F] </IfModule>
|
|||||||
>> 相关文章 | |||||||