% const flag = (cc) => { if (!cc || cc.length !== 2) { return ''; } return String.fromCodePoint(...[...cc.toUpperCase()].map(c => 0x1F1E6 + c.charCodeAt(0) - 65)); }; %>
<%- include('../partials/head'); -%> <%- include('../partials/admin-stalker-css'); -%>| IP | Location | ISP | User Agents | Visits | Last Seen | Actions |
|---|---|---|---|---|---|---|
| <%= ip.ip %> | <% if (ip.info && (ip.info.city || ip.info.country)) { %> <% if (ip.info.countryCode) { %> <%= flag(ip.info.countryCode) %> <% } %> <% if (ip.info.city || ip.info.regionName) { %> <%= [ip.info.city, ip.info.regionName].filter(Boolean).join(", ") %> <% } %> <% if (ip.info.countryCode) { %> <%= ip.info.countryCode %> <% } %> <% if (ip.info.country) { %> <%= ip.info.country %> <% } %> <% } else { %> None <% } %> | <% if (ip.info && ip.info.isp) { %> <%= ip.info.isp %> <% } else { %> None <% } %> | <% if (ip.userAgents.length) { %> <% ip.userAgents.slice(0, 2).forEach(ua => { const p = parseUA(ua); %> <%= p.browser %><% if (p.browserVersion) { %> <%= p.browserVersion %><% } %> · <%= p.os %> <% }) %> <% if (ip.userAgents.length > 2) { %> +<%= ip.userAgents.length - 2 %> more <% } %> <% } else { %> None <% } %> | <%= ip.visits %> | <%= ip.lastUsed.toISOString() %> | Details |
| No IPs tracked yet. | ||||||