{% extends "xeolux_securitykit/base.html" %} {% block title %}Routes protégées{% endblock %} {% block content %}
Règles de sécurité appliquées par chemin URL.
{{ route.path }}
{{ route.match_type }}
{% if not route.enabled %}Inactif{% endif %}
{% if route.description %}{{ route.description }}{% endif %}
| Action | Si… | 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 %} |
Aucune règle — Ajouter une règle
{% endif %}Aucune route protégée.
Ajouter la première route