{% extends "/coulisses/base.html.twig" %} {% block styles %}{% endblock %} {% block content %}

🍯 {{ pageTitle }}

{{ total }} entrées
Tentatives totales
{{ total }}
IPs distinctes
{{ ip_counts|length > 0 ? ip_counts|keys|length : 0 }}
Tentatives POST
{{ entries|filter(e => e.method == 'POST')|length }}
{% if entries|length > 0 %}
Dernière tentative
{{ entries[0].timestamp|date('d/m H:i') }}
{% endif %}
{% if ip_counts|length > 0 %}
Top IPs attaquantes
{% for ip, count in ip_counts %} {{ ip }}({{ count }}) {% endfor %}
{% endif %}
Journal des tentatives ({{ total }}, plus récentes en premier)
{% if entries|length > 0 %}
{% for i, entry in entries %} {% set hasPost = entry.post_data is defined and entry.post_data|length > 0 %} {% endfor %}
DateIPMéthodeURIUser-Agent
{{ entry.timestamp|date('d/m/y H:i:s') }} {{ entry.ip }} {{ entry.method }} {{ entry.uri }} {{ entry.user_agent|slice(0, 80) }}{% if entry.user_agent|length > 80 %}…{% endif %}
{% if entry.ip %}
IP
{{ entry.ip }}
{% endif %} {% if entry.forwarded_for %}
X-Forwarded-For
{{ entry.forwarded_for }}
{% endif %} {% if entry.uri %}
URI complète
{{ entry.uri }}{% if entry.query_string %}?{{ entry.query_string }}{% endif %}
{% endif %} {% if entry.referer %}
Referer
{{ entry.referer }}
{% endif %} {% if entry.accept_lang %}
Accept-Language
{{ entry.accept_lang }}
{% endif %} {% if entry.user_agent %}
User-Agent
{{ entry.user_agent }}
{% endif %}
{% if hasPost %}
Données POST
{{ entry.post_data|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_UNICODE')) }}
{% endif %}
{% else %}
Aucune tentative enregistrée Le honeypot est en place — les tentatives apparaîtront ici dès qu'elles surviendront.
{% endif %}
{# /.c-honeypot #} {% endblock %}