{% extends "xeolux_securitykit/base.html" %} {% block title %}{{ title }}{% endblock %} {% block content %}
{% csrf_token %} {% for field in form %} {% if field.name in "cond_authenticated,cond_staff,cond_whitelist_ip,cond_blacklist_deny,cond_api_key" %} {# Ces champs sont groupés dans le bloc "conditions" ci-dessous #} {% elif field.name in "cond_methods,cond_user_agent_block,cond_require_group,cond_require_permission,cond_require_https,cond_deny_threat_above,cond_deny_referer_pattern,cond_allowed_days,cond_require_header_name,cond_require_header_value,cond_deny_query_param_pattern" %} {# Idem — affichés dans le groupe conditions #} {% else %}
{{ field }} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% if field.errors %}
    {% for e in field.errors %}
  • {{ e }}
  • {% endfor %}
{% endif %}
{% endif %} {% endfor %}
Conditions d'accès

Définissez qui déclenche cette règle. ET = toutes les conditions cochées doivent être vraies. OU = une seule suffit.

{% for choice_val, choice_label in form.cond_methods.field.choices %} {% endfor %}

{{ form.cond_methods.help_text }}

{{ form.cond_user_agent_block }}

{{ form.cond_user_agent_block.help_text }}

Conditions avancées

Filtrage fin : groupe, permission, niveau de menace, jours, HTTPS, headers, paramètres GET.

{{ form.cond_require_group }}

{{ form.cond_require_group.help_text }}

{{ form.cond_require_permission }}

{{ form.cond_require_permission.help_text }}

{{ form.cond_deny_threat_above }}

{{ form.cond_deny_threat_above.help_text }}

{{ form.cond_deny_referer_pattern }}

{{ form.cond_deny_referer_pattern.help_text }}

{{ form.cond_deny_query_param_pattern }}

{{ form.cond_deny_query_param_pattern.help_text }}

{{ form.cond_require_header_name }}

{{ form.cond_require_header_name.help_text }}

{{ form.cond_require_header_value }}

{{ form.cond_require_header_value.help_text }}

{% for day_val, day_label in form.cond_allowed_days.field.choices %} {% endfor %}

{{ form.cond_allowed_days.help_text }}

{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
Annuler
{% if dry_run_result %}
Résultat de la simulation
CHEMIN
{{ dry_run_result.path }}
IP SIMULÉE
{{ dry_run_result.simulated_ip }}
VERDICT
{{ dry_run_result.final_verdict }}
{% for check in dry_run_result.checks %} {% endfor %}
VérificationRésultat
{{ check.check }} {{ check.result }}
{% endif %} {% if profiles %}
Profils disponibles
{% for profile in profiles %} {% endfor %}
ProfilDescription
{{ profile.label }} {{ profile.description }}
{% csrf_token %}
{% endif %} {% endblock %}