Remove trap paths and known hosts: catch everything on the trap port

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-15 18:56:35 +01:00
1 parent b9f2b0443c
commit 9a56fc5b48
31 files changed
+335 -462

No files matched your search

+4 -6
View File
@@ -11,15 +11,14 @@ else, and every catch is logged with its origin for you to look at.
flowchart LR
bot["Scanner bot"] -->|"GET /.env<br/>Host: 203.0.113.7"| proxy["Reverse proxy"]
proxy -->|"known site"| apps["Your apps"]
proxy -->|"unknown host or trap path<br/>+ X-Real-IP"| flypaper["Flypaper"]
proxy -->|"unknown host<br/>+ X-Real-IP"| flypaper["Flypaper"]
flypaper -.->|"endless HTML,<br/>a few bytes at a time"| bot
flypaper --> db[("SQLite:<br/>catches, settings")]
you["You (LAN)"] -->|"dashboard, port 8081"| flypaper
```
1. Your reverse proxy keeps serving your real sites. Everything it has no site for (the
default/catch-all server) goes to Flypaper, optionally also a few bait paths on your real
domains.
default/catch-all server) goes to Flypaper.
2. Flypaper listens on two ports. Port `8080` is the trap: everything that arrives there is
caught. Port `8081` serves the dashboard and never traps; keep it inside your LAN.
3. A caught request gets `200 OK` and an endless, plausible-looking HTML page: random chunks
@@ -31,15 +30,14 @@ flowchart LR
## Features
- **Traps** for unknown hosts (catch-all) and for configurable trap paths such as `/.env`,
`/.git/*` or `/wp-login.php`
- **Trap** for everything that reaches the trap port: whatever host or path a bot asks for
- **Slow delivery** of endless generated HTML with irregular timing
- **Limits**: maximum connections overall and per IP, maximum hold time per catch
- **Dashboard**: totals, a world map, top countries, providers, IPs and paths, the latest
catches with expandable details; login with an admin password
- **GeoIP**: country, city and ASN per catch from DB-IP Lite, downloaded and refreshed
monthly; existing catches are filled in once the databases are available
- **Settings page**: trap paths, extra known hosts, limits and retention, changed at runtime
- **Settings page**: limits and retention, changed at runtime
without a restart
- **Retention**: old catches are deleted daily (90 days by default); catches from private
networks are not stored by default; buttons to delete private or all catches