{% load static %} {% load l10n %} {% load add_space %} {% load vhost_warp %} {% load desc_types %} {% load i18n %} {% for row in value %} {% if row.ip and not row.head_group_ip %} {% else %} {% endif %} {% if row.ip and not row.head_group_ip%} {% if row.bt == 7 or row.bt == 9 or row.bt == 10 %} {% if row.possible == 1 %} Possible {% endif %} {% endif %} {% if row.reason == 'Nemesida AI MLA' %} Nemesida AI MLA {% elif row.reason == 'Nemesida AI MLC' %} Nemesida AI MLC {% elif 'Brute' in row.reason %} {% if row.possible == 1 %} brute-force {% else %} Brute-force {% endif %} {% elif 'OpenAPI' in row.reason %} OpenAPI {% elif 'Blocked IP' in row.reason %} Blocked IP {% elif 'Flood' in row.reason %} {% if row.possible == 1 %} flood {% else %} Flood {% endif %} {% else %} {% if 'Virus' in row.description %} Virus {% else %} {% if row.bt == 5 %} Internal error {% elif row.bt == 10 %} DDoS {% else %} {{ row.description }} {% endif %} {% endif %} {% endif %} {% else %} {% for keys,value in row.tags.items %} {{ keys }}{{ value }} {% endfor %} {% endif %} {% if row.bt == 1 or row.bt == 2 %} {% if row.group_blocked %}  LM {% elif row.lm %}  LM {% endif %} {% else %} {% if row.lm %}  LM {% endif %} {% endif %} {% if row.ips.0.location.crawler|lower != 'false' and row.ips.0.location.crawler|lower != 'none' %} C {% endif %} {% if row.bt == 1 or row.bt == 2 or row.bt == 4 or row.bt == 5 or row.bt == 6 or row.bt == 7 or row.bt == 9 or row.bt == 10 or row.bt == 14 or row.bt == 16 %}  {% if row.vhost|length > 20 %} {{ row.vhost|slice:":30" }} {% else %} {{ row.vhost }} {% endif %} {% else %} {% if row.ml_learning_progress != 100 %}  {% if row.vhost|length > 20 %} {{ row.vhost|slice:":30" }} {% else %} {{ row.vhost }} {% endif %} {% else %} {% if row.ml_learning_progress == 100 or row.ml_learning_progress is None %}   {% if row.vhost|length > 20 %} {{ row.vhost|slice:":30" }} {% else %} {{ row.vhost }} {% endif %} {% endif %} {% endif %} {% endif %}
{% with row.ips as ips %} {% include 'main/_logs_ips_results_cell.html' %} {% endwith %}
{% if row.timestamp_max > row.timestamp_min %}   {% else %}   {% endif %} {% spaceless %} {% with date_time=row.timestamp_min date_time_max=row.timestamp_max %} {% include 'main/_logs_date_interval.html' %} {% endwith %} {% endspaceless %}
{% if row.ip and not row.head_group_ip %} {% if row.bt != 5 %} {# recheck block types #} {% if not group and user.is_admin %} {% if row.bt == 1 or row.bt == 2 or row.bt == 3 or row.bt == 8 %} {% if row.status == None %} {% elif row.status == 0 %} {% elif row.status == 1 %} {% elif row.status == 2 %} {% elif row.status == 3 %} {% if row.description_recheck %} {% else %} {% endif %} {% endif %} {% endif %} {% endif %} {# unlock block #} {% if row.bt == 1 or row.bt == 2 %} {% if row.alias in keys_waf_ids %} {% endif %} {% endif %} {% include 'main/_unlock.html' %} {% if row.bt == 12 or row.bt == 13 or row.bt == 11 %} {% include 'mt/buttons_for_attacks_table.html' %} {% endif %} {% endif %} {% endif %}
{% endfor %}