添加域名
<p class="shortdesc">本文介绍在购买DDoS高防IP后如何为网站添加域名。</p>
<section class="section context" id="dc_ddos_cfg_0013__context_hft_32c_1nb"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p">在网站高防中添加域名进行高防IP接入后,访问流量经过高防IP过滤,实现保护网站。您必须在DNS服务商处
添加域名对应的CNAME,保证网站流量正常经过高防IP,防护才能生效。</p>
<div class="p">
<img class="image" id="dc_ddos_cfg_0013__image_n5c_p2c_1nb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20220811172415-121c056c9f53.jpg">
</div>
</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://www.ocftcloud.com/console/microApp/security-ads" target="_blank">DDoS防护控制台</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="keyword wintitle">网站高防</span>页面右上角中,单击<span class="ph uicontrol">添加域名</span>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在<span class="keyword wintitle">添加域名</span>页面,配置相关信息。</span>
<div class="itemgroup info">
<table class="table frame-all" id="dc_ddos_cfg_0013__table_kh2_fc1_1nb"><caption></caption><colgroup><col style="width:50%"><col style="width:50%"></colgroup><thead class="thead">
<tr class="row">
<th class="entry" id="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__1">
<p class="p"><strong class="ph b">配置项</strong></p>
</th>
<th class="entry" id="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__2">
<p class="p"><strong class="ph b">说明</strong></p>
</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__1 ">
<p class="p">防护网站</p>
</td>
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__2 ">
<div class="p">输入防护网站。<div class="note note note_note"><span class="note__title">说明:</span> 一级域名和二级域名需分开配置, a123.com 和 b123.com
需要作为两个不同的域名分别进行配置,否则访问可能出现异常。例如,只配置了 abc.com,在访问
a123.com 时有可能提示无法访问。</div></div>
</td>
</tr>
<tr class="row">
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__1 ">
<p class="p">协议类型</p>
</td>
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__2 ">
<div class="p">选择协议类型。<div class="note note note_note"><span class="note__title">说明:</span> 有HTTPS站点,务必勾选HTTPS,同时建议勾选HTTP,以应对HTTP跳转等问题,保证访问平滑。</div></div>
</td>
</tr>
<tr class="row">
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__1 ">
<p class="p">源站IP</p>
</td>
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__2 ">
<p class="p">输入源站IP。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__1 ">
<p class="p">选择资源</p>
</td>
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__2 ">
<p class="p">选择资源。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__1 ">
<p class="p">选择线路</p>
</td>
<td class="entry" headers="dc_ddos_cfg_0013__table_kh2_fc1_1nb__entry__2 ">
<p class="p">选择线路。目前仅支持BGP线路。</p>
</td>
</tr>
</tbody></table>
</div>
</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>
<div class="itemgroup info">
<div class="note note note_note"><span class="note__title">说明:</span>
<ul class="ul" id="dc_ddos_cfg_0013__ul_mhs_hf1_1nb">
<li class="li">在您的DNS服务商处修改DNS解析,添加CNAME记录,具体操作请参见《修改DNS解析》。</li>
<li class="li">若源站IP已泄露,您的网站可能被绕过高防IP直接被攻击,建议域名添加完成后更换源站IP,具体操作请参见《更换源站IP》。</li>
</ul>
</div>
</div>
</li></ol></section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!