docs: add honeypot docs

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-12-16 04:03:37 -05:00
parent 83c8c3606a
commit 82fca3e714
6 changed files with 100 additions and 45 deletions

View File

@@ -172,11 +172,9 @@ func (i *Impl) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if stage == "init" {
lg.Debug("found new entrance point", "id", id, "stage", stage, "userAgent", r.UserAgent(), "clampedIP", network)
} else {
if networkCount >= 50 && networkCount%256 == 0 {
lg.Warn("found possible crawler", "id", id)
}
if uaCount >= 50 && uaCount%256 == 0 {
lg.Warn("found possible crawler", "id", id)
switch {
case networkCount%256 == 0, uaCount%256 == 0:
lg.Warn("found possible crawler", "id", id, "network", network)
}
}