黑白名单
<p class="shortdesc">本文介绍如何新增黑白名单。</p>
<section class="section prereq" id="list__prereq_g35_l3m_rrb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<p class="p">您已购买Web应用防火墙服务。</p>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd">登录<a class="xref" href="https://pinganyun.com/" target="_blank" rel="external noopener">平安云官网</a>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击页面右上角<span class="ph uicontrol">控制台</span>按钮。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">输入账号名和密码,通过验证,单击<span class="ph uicontrol">确定</span>,登录控制台。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在左侧导航栏中单击<span class="ph menucascade"><span class="ph uicontrol">全部产品</span><abbr> > </abbr><span class="ph uicontrol">Web应用防火墙</span></span> ,进入<span class="keyword wintitle">概览</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">管理</span>跳转到<span class="keyword wintitle">防护概览</span>页面,单击左侧导航栏<span class="ph menucascade"><span class="ph uicontrol">防护配置</span><abbr> > </abbr><span class="ph uicontrol">访问控制</span></span>,选择<span class="keyword wintitle">黑白名单</span>页签,进入<span class="keyword wintitle">黑白名单</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">新增</span>进入<span class="keyword wintitle">新增黑白名单</span>页面,根据需要选择新增黑名单或白名单。</span>
<div class="itemgroup info">
<img class="image" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20231704193310-16447f2093eb.png" width="700">
<img class="image" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20231704193311-10090f539642.png" width="700">
<table class="table" id="list__white_black_list"><caption></caption><colgroup><col><col></colgroup><thead class="thead">
<tr class="row">
<th class="entry" id="list__white_black_list__entry__1">
<p class="p">配置项</p>
</th>
<th class="entry" id="list__white_black_list__entry__2">
<p class="p">说明</p>
</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry" headers="list__white_black_list__entry__1 ">
<p class="p">类型</p>
</td>
<td class="entry" headers="list__white_black_list__entry__2 ">
<p class="p">可以选择黑名单或白名单。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="list__white_black_list__entry__1 ">
<p class="p">IP地址</p>
</td>
<td class="entry" headers="list__white_black_list__entry__2 ">
<p class="p">支持以下两种输入方式:</p>
<div class="p">
<ul class="ul" id="list__ul_rky_nlm_rrb">
<li class="li">可输入多个单IP,并以英文逗号分隔,如“192.168.0.1,192.168.1.1”。</li>
<li class="li">可输入网段,如“192.168.0.0/24”</li>
</ul>
</div>
<div class="note note note_note" id="list__note_cgt_zlm_rrb"><span class="note__title">说明:</span>
<ul class="ul" id="list__ul_f5t_dmm_rrb">
<li class="li">类型选择黑名单并且不配置IP,则所有IP都不能访问指定站点或URL。</li>
<li class="li">类型选择白名单并且不配置IP,则所有IP都能访问指定站点或URL。</li>
<li class="li">若同一个IP既配置了黑名单,又配置了白名单,则白名单优先级高于黑名单。</li>
</ul>
</div>
</td>
</tr>
<tr class="row">
<td class="entry" headers="list__white_black_list__entry__1 ">
<p class="p">限定时长</p>
</td>
<td class="entry" headers="list__white_black_list__entry__2 ">
<p class="p">黑白名单生效时间,到达限定时间后,黑白名单将会失效,并被删除记录。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="list__white_black_list__entry__1 ">
<p class="p">限定级别</p>
</td>
<td class="entry" headers="list__white_black_list__entry__2 ">
<div class="p">可以选择对指定的站点或URL进行访问限制:<ul class="ul" id="list__ul_v3p_4nm_rrb">
<li class="li">选择站点级时,需要勾选站点,并输入备注。</li>
<li class="li">选择url级时,需要输入具体的URL及备注。</li>
</ul></div>
</td>
</tr>
</tbody></table>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">新增</span>。</span>
</li></ol></section>
<section class="section result" id="list__result_grk_jnm_rrb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">在<span class="keyword wintitle">黑白名单</span>页面可以看到刚刚添加的黑白名单记录。</p>
<div class="p">
<div class="note note note_note" id="list__note_dmm_f4m_rrb"><span class="note__title">说明:</span>
<div class="p">
<ul class="ul" id="list__ul_nd5_f4m_rrb">
<li class="li">同一个站点,对某个IP地址,既配置黑名单又配置了白名单,则该站点对于这个IP地址的策略是放行的。</li>
<li class="li">同一个站点,对某个IP地址配置了黑名单,但是该站点下的某个URL对于这个IP地址配置了白名单,则该站点下只有这个URL对这个IP的策略是放行的,其他路径都是禁止访问的。</li>
</ul>
</div>
</div>
</div>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!