{% extends "django_security_monitor/base.html" %} {% block title %}IP: {{ threat.ip_address }}{% endblock %} {% block topbar_title %}🔎 IP Analysis: {{ threat.ip_address }}{% endblock %} {% block content %}
IP Profile {% if threat.is_blocked %} 🔒 Blocked {% elif whitelisted %} ✅ Whitelisted {% else %} {{ threat.risk_level }} {% endif %}
{% if threat.location %} {% endif %} {% if threat.is_blocked %} {% endif %}
IP Address {{ threat.ip_address }}
Threat Score {{ threat.score|floatformat:1 }}
Hack Probability {% with prob=threat.hack_probability %}
{{ prob }}%
{% endwith %}
Total Events {{ threat.event_count }}
First Seen {{ threat.first_seen|date:"M d, Y H:i" }}
Last Event {{ threat.last_event|date:"M d, Y H:i" }}
Location {{ threat.location.city }}, {{ threat.location.country }}
Coordinates {{ threat.location.latitude }}, {{ threat.location.longitude }}
Block Reason {{ threat.block_reason }}
Actions
{% if threat.is_blocked %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% if whitelisted %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
Attack Breakdown
{% if login_attempts %}
🔑 Login Attempts
{% for a in login_attempts %} {% endfor %}
TimeUsernameResultUser Agent
{{ a.timestamp|date:"M d H:i:s" }} {{ a.username }} {% if a.success %} ✓ Success {% else %} ✗ Failed {% endif %} {{ a.user_agent }}
{% endif %}
Event History (last 100)
{% for e in events %} {% empty %} {% endfor %}
TimeTypeSeverityPathScore Δ
{{ e.timestamp|date:"M d H:i:s" }} {{ e.get_event_type_display }} {{ e.severity }} {{ e.path }} {% if e.threat_score_delta %}+{{ e.threat_score_delta|floatformat:0 }}{% endif %}
No events for this IP
{% endblock %} {% block extra_js %} {% endblock %}