{% extends 'my_waf/index.html' %} {% load i18n %} {% load static %} {% load waf_utils %} {% block extra_head %} {% endblock %} {% block action_log %}
{% csrf_token %}

{% trans 'ERL page title' %}

{% trans 'ERL Rule type' %}

{% trans 'ERL add block title' %}

{% trans "ERL Rule Status block" %}

{% trans 'Add\Edit ERL Active checkbox' %}
{% trans 'ERL end of life label' %} {% trans 'ERL end of life unit' %} {% trans 'ERL end of life error' %}

{% trans 'ERL Rule Comment block' %}

{% if erl.method|length > 0 %}
{% trans 'Add\Edit Method input field' %}
{% for el in erl.method %}
:
{% endfor %}
{% endif %} {% if erl.domain|length > 0 %}
{% trans 'Add\Edit ERL Domain input field' %}
{% for el in erl.domain %}
:
{% endfor %}
{% endif %} {% if erl.port|length > 0 %}
{% trans 'Add\Edit Port input field' %}
{% for el in erl.port %}
:
{% endfor %}
{% endif %} {% if erl.url|length > 0 or erl.url_x|length > 0 %}
Path
{% for el in erl.url %}
:
{% endfor %} {% for el in erl.url_x %}
:
{% endfor %}
{% endif %} {% if erl.country|length > 0 %}
{% trans 'Add\Edit ERL Country input field' %}
{% for el in erl.country %}
:
{% endfor %}
{% endif %} {% if erl.ip|length > 0 %}
IP
{% for el in erl.ip %}
:
{% endfor %}
{% endif %} {% if erl.args|length > 0 or erl.args_x|length > 0 %}
ARGS
{% for el in erl.args %}
:
{% endfor %} {% for el in erl.args_x %}
:
{% endfor %}
{% endif %} {% if erl.body|length > 0 or erl.body_x|length > 0 %}
BODY
{% for el in erl.body %}
:
{% endfor %} {% for el in erl.body_x %}
:
{% endfor %}
{% endif %} {% if erl.ua|length > 0 or erl.ua_x|length > 0 %}
User-Agent
{% for el in erl.ua %}
:
{% endfor %} {% for el in erl.ua_x %}
:
{% endfor %}
{% endif %} {% if erl.cookie|length > 0 or erl.cookie_x|length > 0 %}
Cookie
{% for el in erl.cookie %}
:
{% endfor %} {% for el in erl.cookie_x %}
:
{% endfor %}
{% endif %} {% if erl.referer|length > 0 or erl.referer_x|length > 0 %}
Referer
{% for el in erl.referer %}
:
{% endfor %} {% for el in erl.referer_x %}
:
{% endfor %}
{% endif %} {% if erl.wl_data|length > 0 %}
{% trans "WL Data block name" %}
{% for signature in erl.wl_data %} {% for signature_name, zones in signature.items %}
{% for zone in zones %} {% if zone|is_mfd_zone %}
:
{% else %} {% with zone_upper=zone.strip|upper %} {% if zone_upper != "NOMLA" and zone.strip|lower != "$nomla" %}
:
{% endif %} {% endwith %} {% endif %} {% endfor %}
{% endfor %} {% endfor %}
{% endif %} {% if erl.exclude_from_body or erl.exclude_from_body_x %}
{% trans 'EFB dropdown option' %}
{% trans 'EFB strings title' %}
{% for s in erl.exclude_from_body_strings %}
{% endfor %} {% for s in erl.exclude_from_body_x_strings %}
{% endfor %}
{% trans 'EFB mfd title' %}
{% for field in erl.exclude_from_body_mfd %}
{% endfor %} {% for field in erl.exclude_from_body_x_mfd %}
{% endfor %}
{% trans 'EFB json title' %}
{% for path_parts in erl.exclude_from_body_json %}
{% for part in path_parts %}
{% endfor %}
{% endfor %} {% for path_parts in erl.exclude_from_body_x_json %}
{% for part in path_parts %}
{% endfor %}
{% endfor %}
{% endif %} {% if erl.no_ua %}
{% trans 'Add\Edit ERL NoUA checkbox' %}
{% trans 'ERL NoUA activation' %}
{% endif %} {% if erl.no_cookie %}
{% trans 'Add\Edit ERL NoCookie checkbox' %}
{% endif %} {% if erl.block_tor %}
{% trans 'Add\Edit ERL Block Tor checkbox' %}
{% trans 'ERL Block Tor activation' %}
{% endif %} {% if erl.block_proxy %}
{% trans 'Add\Edit ERL Block Proxy checkbox' %}
{% trans 'ERL Block Proxy activation' %}
{% endif %} {% if erl.no_referer %}
{% trans 'Add\Edit ERL NoReferer checkbox' %}
{% trans 'ERL NoReferer activation' %}
{% endif %} {% if erl.other_headers|length > 0 or erl.other_headers_x|length > 0 %}
{% trans 'Add\Edit ERL Other Headers input field' %}
{% if erl.other_headers|length > 0 %}
{% for first_level_block in erl.other_headers %} {% if first_level_block|get_type == 'dict' %}

:

{% for first_level_block_value in first_level_block.row_values|slice:"1:" %}
{% endfor %}
{% endif %} {% endfor %}
{% for first_level_block in erl.other_headers %} {% if first_level_block|get_type != 'dict' %}
{% for second_level_block in first_level_block %} {% if second_level_block|get_type == 'dict' %}

:

{% for second_level_block_value in second_level_block.row_values|slice:"1:" %}
{% endfor %}
{% endif %} {% endfor %}
{% for second_level_block in first_level_block %} {% if second_level_block|get_type != 'dict' %}
{% for third_level_block in second_level_block %}

:

{% for third_level_block_value in third_level_block.row_values|slice:"1:" %}
{% endfor %}
{% endfor %}
{% endif %} {% endfor %}
{% endif %} {% endfor %}
{% endif %} {% if erl.other_headers_x|length > 0 %}
{% for first_level_block in erl.other_headers_x %} {% if first_level_block|get_type == 'dict' %}

:

{% for first_level_block_value in first_level_block.row_values|slice:"1:" %}
{% endfor %}
{% endif %} {% endfor %}
{% for first_level_block in erl.other_headers_x %} {% if first_level_block|get_type != 'dict' %}
{% for second_level_block in first_level_block %} {% if second_level_block|get_type == 'dict' %}

:

{% for second_level_block_value in second_level_block.row_values|slice:"1:" %}
{% endfor %}
{% endif %} {% endfor %}
{% for second_level_block in first_level_block %} {% if second_level_block|get_type != 'dict' %}
{% for third_level_block in second_level_block %}

:

{% for third_level_block_value in third_level_block.row_values|slice:"1:" %}
{% endfor %}
{% endfor %}
{% endif %} {% endfor %}
{% endif %} {% endfor %}
{% endif %}
{% endif %} {% if erl.zone_settings|length > 0 %}
{% trans 'Add\Edit ERL Zone settings input field' %}
{% for key, value in erl.zone_settings.items %}
{# Controlling from zone_settings_controller.js #} {# To add new zones e.t.c. go there #} {# prev attr is necessary here for script to load data and remove not unique #}
{% endfor %}
{% endif %}
:
$BLOCK_NAME
:
$BLOCK_NAME
$CUSTOM_BLOCK_TEXT
{# Controlling from other_headers_controller.js #}
{% trans 'Add\Edit ERL Other Headers input field' %}
{% trans 'Add\Edit ERL Zone settings input field' %}
{% trans "WL Data block name" %}
{% trans 'EFB dropdown option' %}
{% trans 'EFB strings title' %}
{% trans 'EFB mfd title' %}
{% trans 'EFB json title' %}
{% if erl.domain|length > 0 %} {% endif %} {% if erl.country|length > 0 %} {% endif %} {% if erl.ip|length > 0 %} {% endif %} {% if erl.url|length > 0 %} {% endif %} {% if erl.url_x|length > 0 %} {% endif %} {% if erl.args|length > 0 %} {% endif %} {% if erl.args_x|length > 0 %} {% endif %} {% if erl.body|length > 0 %} {% endif %} {% if erl.body_x|length > 0 %} {% endif %} {% if erl.ua|length > 0 %} {% endif %} {% if erl.ua_x|length > 0 %} {% endif %} {% if erl.cookie|length > 0 %} {% endif %} {% if erl.cookie_x|length > 0 %} {% endif %} {% if erl.no_cookie %} {% endif %} {% if erl.no_ua %} {% endif %} {% if erl.no_referer %} {% endif %} {% if erl.block_tor %} {% endif %} {% if erl.block_proxy %} {% endif %} {% if erl.referer|length > 0 %} {% endif %} {% if erl.referer_x|length > 0 %} {% endif %} {% if erl.other_headers|length > 0 %} {% endif %} {% if erl.zone_settings|length > 0 %} {% endif %} {% if erl.other_headers_x|length > 0 %} {% endif %} {% if erl.port|length > 0 %} {% endif %} {% if erl.method|length > 0 %} {% endif %}
{% endblock %}