我目前允许以下2个特定的IP地址访问我的开发服务器而无需密码:
AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/server/htdocs/.htpasswd
AuthGroupFile /dev/null
require valid-user
Order allow,deny
Allow from 11.125.19.12
Allow from 11.59.193.12
satisfy any
WorldPay刚刚向我发送了这两个IP地址范围 - 如何将这些地址添加到我的允许列表中?它对范围有不同的作用吗?
可能的解决方案1:
AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/server/htdocs/.htpasswd
AuthGroupFile /dev/null
require valid-user
Order allow,deny
Allow from 11.125.19.12
Allow from 11.59.193.12
Allow from 195.35.90
Allow from 195.35.91
satisfy any
答案 0 :(得分:1)
除了您允许的11.x.x.x IP之外,您发布的可能解决方案将允许范围195.35.90.1 - 195.35.90.255和195.35.91.1 - 195.35.91.255。您可以查看https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow以获取有关Allow
指令语法的更多详细信息。