{% if erl.end_of_life %}
{% endif %}
{% trans 'ERL Active option' %}{% trans 'ERL Inactive option' %}
{% if erl.comment %}{{ erl.comment }}{% endif %}
{% if erl.domain %}{{ erl.domain.0.1 }}{% if erl.domain|length > 1 %}+{{ erl.domain|length|add:"-1" }}{% endif %}{% endif %}
{% with url_total=erl.url|length url_x_total=erl.url_x|length %}{% if erl.url or erl.url_x %}{% if erl.url %}{{ erl.url.0.1 }}{% else %}{{ erl.url_x.0.1 }}{% endif %}{% if url_total|add:url_x_total > 1 %}+{{ url_total|add:url_x_total|add:"-1" }}{% endif %}{% endif %}{% endwith %}
{% include 'my_waf/edit_erl.html' %}
{% include 'my_waf/delete_erl.html' %}
{% trans 'ERL Signature params block title' %}:
{% if erl.wl_data %}
{% for sig in erl.wl_data %}
{% for sig_id, zones in sig.items %}
{% trans 'ERL WL data table header' %}:{{ sig_id }}
{% trans 'ERL Zones label' %}:{% with zones_clean=zones|without_nomla %}{{ zones_clean|slice:":3"|join:", " }}{% if zones_clean|length > 3 %}, {{ zones_clean|slice:"3:"|join:", " }}{% endif %}{% endwith %}
{% with zones_clean=zones|without_nomla %}
{% if zones_clean|length > 3 %}
{% endif %}
{% endwith %}
{% if zones|is_nomla_signature %}
{% trans 'ERL No MLA label' %}:{% trans 'Yes' %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% trans 'ERL Request params block title' %}:
{% if erl.method %}
{% trans 'ERL Method table header' %}:
{% for el in erl.method %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.domain %}
{% trans 'ERL Domain table header' %}:
{% for el in erl.domain %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.port %}
{% trans 'ERL Port table header' %}:
{% for el in erl.port %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.url or erl.url_x %}
{% trans 'ERL URL table header' %}:
{% for el in erl.url %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}{% for el in erl.url_x %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.args or erl.args_x %}
{% trans 'ERL ARGS table header' %}:
{% for el in erl.args %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}{% for el in erl.args_x %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.no_cookie == 'True' %}
{% trans 'ERL Cookie table header' %}:{% trans 'No Cookie' %}
{% elif erl.cookie or erl.cookie_x %}
{% trans 'ERL Cookie table header' %}:
{% for el in erl.cookie %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}{% for el in erl.cookie_x %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.no_ua == 'True' %}
{% trans 'ERL UA table header' %}:{% trans 'No User-Agent' %}
{% elif erl.ua or erl.ua_x %}
{% trans 'ERL UA table header' %}:
{% for el in erl.ua %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}{% for el in erl.ua_x %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.no_referer == 'True' %}
{% trans 'ERL Referer table header' %}:{% trans 'No Referer' %}
{% elif erl.referer or erl.referer_x %}
{% trans 'ERL Referer table header' %}:
{% for el in erl.referer %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}{% for el in erl.referer_x %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% if erl.other_headers|length > 0 or erl.other_headers_x|length > 0 %}
{% trans 'ERL Other Headers table header' %}:
{% endif %}
{% if erl.body or erl.body_x %}
{% trans 'ERL Body table header' %}:
{% for el in erl.body %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}{% for el in erl.body_x %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %} {% endif %}{% endfor %}
{% endif %}
{% trans 'ERL Request source block title' %}:
{% if erl.ip %}
IP:
{% for el in erl.ip %}{% if el.0 and el.0 != " " %}{{ el.0 }} {% endif %}{{ el.1 }}{% if not forloop.last %}{% if forloop.counter|divisibleby:3 %} {% else %} {% endif %}{% endif %}{% endfor %}
{% if erl.ip|length > 6 %}{% endif %}
{% endif %}
{% if erl.country %}
{% trans 'Country' %}:{% for el in erl.country %}{{ el.1|upper }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}
{% if erl.block_proxy == 'True' or erl.block_tor == 'True' %}
{% trans 'ERL Anonymity label' %}:{% if erl.block_proxy == 'True' %}Proxy{% endif %}{% if erl.block_proxy == 'True' and erl.block_tor == 'True' %}, {% endif %}{% if erl.block_tor == 'True' %}Tor{% endif %}
{% endif %}
{% if erl.exclude_from_body_strings or erl.exclude_from_body_x_strings or erl.exclude_from_body_mfd or erl.exclude_from_body_x_mfd or erl.exclude_from_body_json or erl.exclude_from_body_x_json %}
{% trans 'EFB dropdown option' %}:
{% if erl.exclude_from_body_strings or erl.exclude_from_body_x_strings %}
{% trans 'ERL EFB Strings label' %}:
{% endif %}
{% if erl.exclude_from_body_mfd or erl.exclude_from_body_x_mfd %}
{% trans 'ERL EFB MFD label' %}:
{% endif %}
{% if erl.exclude_from_body_json or erl.exclude_from_body_x_json %}
{% trans 'ERL EFB JSON label' %}:
{% endif %}
{% endif %}
{% trans 'ERL Additional options block title' %}:
{% trans 'ERL NoBan option' %}:{% if erl.noban == 'True' %}{% trans 'Yes' %}{% else %}{% trans 'No' %}{% endif %}
{% trans 'ERL API option' %}:{% if erl.api == 'True' %}{% trans 'Yes' %}{% else %}{% trans 'No' %}{% endif %}
{% trans 'ERL LM option' %}:{% if erl.lm == 'True' %}{% trans 'Yes' %}{% else %}{% trans 'No' %}{% endif %}
{% trans 'ERL Content limits block title' %}:
{% for zone, size in erl.zone_max_size.items %}{% if size %}