{% load static %} {% load i18n %} {% load l10n %} {% load add_space %} {% load row_warp %} {% load highlighting_red %} {% load pretty_json %} {% for row in main %}
{% if row.bt == 5 or row.bt == 10 %} {% if row.description != '' and row.description %}
{% trans 'Description' context 'Attack' %}
{{ row.description }}
{% endif %} {% else %}
{% if row.bt == 11 %}
{% trans 'Unlocked by' context 'Attack' %}
{{ row.reason }}
{% else %}
{% trans 'Blocked by' context 'Attack' %}
{{ row.reason }}
{% endif %}
{% endif %} {% if not group %} {% if row.rule_id %}
{% trans 'Rule ID' context 'Attack' %}
{{ row.rule_id }} {% if row.lm %}M{% endif %}
{% endif %} {% endif %} {% if row.method|cut:" " and row.method != 'NULL' and row.method != '-' and row.method is not None %}
{% trans 'Method' context 'Attack' %}
{% if row.mz|lower == 'method' or 'method' in row.mz_group %} {% if row.bt == 14 %} {{ row.method|linebreaksbr }} {% else %} {{ row.method|linebreaksbr }} {% endif %} {% else %} {{ row.method|linebreaksbr }} {% endif %}
{% endif %} {% if row.body|cut:" " and row.body != 'NULL' and row.body != '-' and row.body is not None %}
{% if row.bt == 4 %}
{% trans 'Info' context 'Attack' %}
{% else %}
{% trans 'Body' context 'Attack' %}
{% endif %}
{% if row.mz|lower == 'body' or 'body' in row.mz_group %} {% if row.bt == 14 %} {{ row.body }} {% elif row.body_is_large %} {% trans "Content is too large" %} {% else %} {{ row.body }} {% endif %} {% else %} {% if row.body_is_large %} {% trans "Content is too large" %} {% else %} {{ row.body }} {% endif %} {% endif %}
{% endif %} {% if row.url|cut:" " and row.url != 'NULL' and row.url != '-' and row.url is not None %}
{% trans 'URL' context 'Attack' %}
{% if row.mz|lower == 'url' or 'url' in row.mz_group %} {% if row.bt == 14 %} {{ row.url|linebreaksbr }} {% else %} {{ row.url|linebreaksbr }} {% endif %} {% else %} {{ row.url|linebreaksbr }} {% endif %}
{% endif %} {% if row.param|cut:" " and row.param != 'NULL' and row.param != '-' and row.param is not None %}
{% trans 'ARGS' context 'Attack' %}
{% if row.mz|lower == 'args' or 'args' in row.mz_group %} {% if row.bt == 14 %} {{ row.param|linebreaksbr }} {% else %} {{ row.param|linebreaksbr }} {% endif %} {% else %} {{ row.param|linebreaksbr }} {% endif %}
{% endif %} {% if row.cookie|cut:" " and row.cookie != 'NULL' and row.cookie != '-' and row.cookie is not None %}
{% trans 'Cookie' context 'Attack' %}
{% if row.mz|lower == 'cookie' or 'cookie' in row.mz_group %} {% if row.bt == 14 %} {{ row.cookie|linebreaksbr }} {% else %} {{ row.cookie|linebreaksbr }} {% endif %} {% else %} {{ row.cookie|linebreaksbr }} {% endif %}
{% endif %} {% if row.ua|cut:" " and row.ua != 'NULL' and row.ua != '-' and row.ua is not None %}
{% trans 'User-agent' context 'Attack' %}
{% if row.mz|lower == 'user-agent' or 'user-agent' in row.mz_group %} {% if row.bt == 14 %} {{ row.ua|linebreaksbr }} {% else %} {{ row.ua|linebreaksbr }} {% endif %} {% else %} {{ row.ua|linebreaksbr }} {% endif %}
{% endif %} {% if row.referer|cut:" " and row.referer != 'NULL' and row.referer != '-' and row.referer is not None %}
{% trans 'Referer' context 'Attack' %}
{% if row.mz|lower == 'referer' or 'referer' in row.mz_group %} {% if row.bt == 14 %} {{ row.referer|linebreaksbr }} {% else %} {{ row.referer|linebreaksbr }} {% endif %} {% else %} {{ row.referer|linebreaksbr }} {% endif %}
{% endif %} {% if row.other_headers|cut:" " and row.other_headers != 'NULL' and row.other_headers != '-' and row.other_headers is not None %}
{% trans 'Headers' context 'Attack' %}
{% if row.mz|lower == 'headers' or row.mz|lower == 'other_headers' or 'headers' in row.mz_group or 'other_headers' in row.mz_group %} {% if row.bt == 14 %} {{ row.other_headers|repl_carriage_transfer|add_space|linebreaksbr }} {% else %} {{ row.other_headers|repl_carriage_transfer|add_space|linebreaksbr }} {% endif %} {% else %} {{ row.other_headers|repl_carriage_transfer|add_space|linebreaksbr|highlighting_red:row.mz|safe }} {% endif %}
{% endif %} {% if user.is_admin %} {% if row.alias %}
{% trans 'WAF ID' context 'Attack' %}
{{ row.alias }}
{% endif %} {% endif %} {% if row.bt == 7 or row.bt == 10 or row.bt == 9 %} {% if row.group_id != '-' and row.group_id != None %}
{% trans 'Group ID' context 'Attack' %}
{{ row.group_id }}
{% endif %} {% endif %} {% if not group %} {% if row.request_id %}
{% trans 'Request ID' context 'Attack' %}
{{ row.request_id }}
{% endif %} {% endif %}
{% endfor %}