{% 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 %}LM{% endif %}
{% endif %} {% endif %} {% if row.method|cut:" " and row.method != 'NULL' and row.method != '-' and row.method is not None %}
{% trans 'Method' context 'Attack' %}
{{ row.method }}
{% 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.body_json %} {
{% for i in row.body|split_json %}  {{ i }}
{% endfor %} } {% else %} {{ row.body|linebreaks }} {% endif %}
{% endif %} {% if row.url|cut:" " and row.url != 'NULL' and row.url != '-' and row.url is not None %}
{% trans 'URL' context 'Attack' %}
{{ row.url|linebreaksbr }}
{% endif %} {% if row.param|cut:" " and row.param != 'NULL' and row.param != '-' and row.param is not None %}
{% trans 'ARGS' context 'Attack' %}
{{ row.param|linebreaksbr }}
{% endif %} {% if row.cookie|cut:" " and row.cookie != 'NULL' and row.cookie != '-' and row.cookie is not None %}
{% trans 'Cookie' context 'Attack' %}
{{ row.cookie|linebreaksbr }}
{% endif %} {% if row.ua|cut:" " and row.ua != 'NULL' and row.ua != '-' and row.ua is not None %}
{% trans 'User-agent' context 'Attack' %}
{{ row.ua|linebreaksbr }}
{% endif %} {% if row.referer|cut:" " and row.referer != 'NULL' and row.referer != '-' and row.referer is not None %}
{% trans 'Referer' context 'Attack' %}
{{ row.referer|linebreaksbr }}
{% 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' %}
{{ row.other_headers|add_space|linebreaksbr }} {% else %} > {{ row.other_headers|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 %}