{% extends "xeolux_securitykit/base.html" %} {% block title %}Routes protégées{% endblock %} {% block content %} {% for route in routes %}
{{ route.path }} {{ route.match_type }} {% if not route.enabled %}Inactif{% endif %} {% if route.description %}{{ route.description }}{% endif %}
+ Règle Modifier
{% csrf_token %}
{% if route.rules.all %}
{% for rule in route.rules.all %} {% endfor %}
ActionSi…PrioritéStatut
{% if rule.action == 'fake_404' %}Fake 404 {% elif rule.action == 'block' %}Bloquer (403) {% elif rule.action == 'allow' %}Autoriser {% elif rule.action == 'redirect' %}Rediriger {% elif rule.action == 'slow_down' %}Ralentir {% else %}{{ rule.action }}{% endif %} {% with c=rule.conditions %} {% if not c %} Toujours {% else %}
{% if c.require_authenticated %}Connecté requis{% endif %} {% if c.require_staff %}Staff requis{% endif %} {% if c.require_whitelist_ip %}IP whitelist{% endif %} {% if c.deny_blacklist_ip %}Bloque blacklist{% endif %} {% if c.require_api_key %}Clé API{% endif %} {% if c.allowed_methods %}{{ c.allowed_methods|join:", " }}{% endif %} {% if c.deny_user_agent_pattern %}UA: {{ c.deny_user_agent_pattern|truncatechars:20 }}{% endif %}
{% endif %} {% endwith %}
{{ rule.priority }} {% if rule.enabled %}Actif{% else %}Inactif{% endif %}
Modifier
{% csrf_token %}
{% else %}

Aucune règle — Ajouter une règle

{% endif %}
{% empty %}

Aucune route protégée.

Ajouter la première route
{% endfor %} {% endblock %}