我正在使用此代码只允许我的IP访问该网站
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^xxx\.xxx\.xxx\.xxx
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
RewriteRule .* /maintenance.html [R=302,L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)
现在我想让我的朋友ip访问该网站.如何在htaccess中指定多个ips?
Ste*_*fan 11
使用.htaccess文件来限制站点并添加:
#...
Allow from IP/SubnetMask
Allow from IP/SubnetMask
#...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15642 次 |
| 最近记录: |