You've already forked caddy-opnsense-blocker
Add lazy IP enrichment and bot hints
This commit is contained in:
@@ -579,7 +579,7 @@ const ipDetailsHTML = `<!doctype html>
|
||||
}
|
||||
const rows = [];
|
||||
if (investigation.bot) {
|
||||
rows.push('<div><strong>Bot</strong>: <span class="badge">' + escapeHtml(investigation.bot.icon || '🤖') + ' ' + escapeHtml(investigation.bot.name) + '</span> via ' + escapeHtml(investigation.bot.method) + '</div>');
|
||||
rows.push('<div><strong>' + (investigation.bot.verified ? 'Bot' : 'Possible bot') + '</strong>: <span class="badge">' + escapeHtml(investigation.bot.icon || '🤖') + ' ' + escapeHtml(investigation.bot.name) + '</span> via ' + escapeHtml(investigation.bot.method) + (investigation.bot.verified ? '' : ' (not verified)') + '</div>');
|
||||
} else {
|
||||
rows.push('<div><strong>Bot</strong>: no verified bot match</div>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user