2020-11-06 11:02:26 +08:00
|
|
|
{$layout}
|
|
|
|
|
|
2023-07-07 15:28:29 +08:00
|
|
|
{$template "../waf_menu"}
|
|
|
|
|
{$template "menu"}
|
2020-11-06 11:02:26 +08:00
|
|
|
|
2023-07-07 15:28:29 +08:00
|
|
|
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
|
|
|
|
|
<input type="hidden" name="firewallPolicyId" :value="firewallPolicyId"/>
|
|
|
|
|
<input type="hidden" name="exceptURLPatternsJSON" :value="JSON.stringify(exceptURLPatterns)"/>
|
|
|
|
|
<input type="hidden" name="onlyURLPatternsJSON" :value="JSON.stringify(onlyURLPatterns)"/>
|
|
|
|
|
<table class="ui table selectable definition">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="title">仅允许的区域</td>
|
|
|
|
|
<td>
|
|
|
|
|
<http-firewall-region-selector :v-countries="allowedCountries" :v-type="'allow'" @change="changeAllowedCountries"></http-firewall-region-selector>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="title">仅封禁的区域</td>
|
|
|
|
|
<td>
|
|
|
|
|
<p class="comment" v-if="allowedCountries.length > 0">由于你已设置"仅允许的区域",所以不需要再设置封禁区域。</p>
|
|
|
|
|
<http-firewall-region-selector :v-countries="deniedCountries" :v-type="'deny'" v-show="allowedCountries.length == 0"></http-firewall-region-selector>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tbody v-show="moreOptionsVisible">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>例外URL <tip-icon content="对这些URL将不做任何限制。"></tip-icon></td>
|
|
|
|
|
<td><url-patterns-box v-model="exceptURLPatterns"></url-patterns-box></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>限制URL <tip-icon content="只对这些URL做限制。"></tip-icon></td>
|
|
|
|
|
<td><url-patterns-box v-model="onlyURLPatterns"></url-patterns-box></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<submit-btn></submit-btn>
|
|
|
|
|
</form>
|