{% extends 'emails/base_email.html.twig' %} {% block email_title %}IP bloquée - {{ data.ip_address }} - 2AB Portal{% endblock %} {% block preheader %}Une adresse IP a été bloquée sur le système. Raison: {{ data.reason }}{% endblock %} {% block email_content %}

🔒 IP Bloquée

Bonjour {{ user.firstName ?? user.email ?? 'Administrateur' }},

Une adresse IP a été bloquée sur le système {{ system_name ?? '2AB Portal' }}.

Détails du blocage

{% if data.duration_minutes is defined %} {% endif %} {% if data.metadata.geo_data is defined and data.metadata.geo_data %} {% endif %} {% if data.metadata.threat_score is defined %} {% endif %}
Adresse IP
{{ data.ip_address }}
Raison {{ data.reason }}
Type de blocage {% if data.block_type == 'permanent' %}
PERMANENT
{% else %}
TEMPORAIRE
{% endif %}
Durée {{ data.duration_minutes }} minutes
Date de blocage {{ data.blocked_at }}
Localisation {{ data.metadata.geo_data.city|default('Inconnu') }}, {{ data.metadata.geo_data.country|default('Inconnu') }} {% if data.metadata.geo_data.isp %}
ISP: {{ data.metadata.geo_data.isp }} {% endif %}
Score de menace {{ data.metadata.threat_score }}/100
{% if data.metadata.recent_attempts is defined and data.metadata.recent_attempts %}

Tentatives récentes

{% for attempt in data.metadata.recent_attempts|slice(0, 5) %} {% endfor %}
{{ attempt.timestamp }} - {{ attempt.action|default('Tentative de connexion') }} {% if attempt.email %}
Email: {{ attempt.email }} {% endif %}
{% endif %}

ℹ Actions recommandées :

{% if data.block_type == 'temporary' %} {% endif %}
Vérifier les logs de cette IP dans le tableau de bord
Analyser les patterns d'attaque si applicable
Considérer un blocage permanent si l'activité persiste
Surveiller l'IP après expiration du blocage

Cordialement,
L'équipe {{ system_name ?? 'Sécurité' }}

{% endblock %}