Redirect & DB Tuning
Dropping Bot & Link-Preview UA Click Inflation Safely
Filter Slackbot, Discordbot, LinkedInBot, Twitterbot, and headless security scanners from analytics writes while preserving valid social link previews.
-38% DB Writes · Accurate Human CTR · 100% Redirect Survival
Never Return 403 to Social Preview Bots on Public Short Links
Blocking social preview crawlers breaks rich link cards in Slack, Discord, and LinkedIn. Instead, allow the HTTP redirect or metadata fetch to resolve cleanly while suppressing the analytics row insert inside your shortener worker.
Impact on NVMe Endurance and Postgres Vacuuming
Dropping ~38% of automated bot noise saves gigabytes of monthly PostgreSQL WAL writes and keeps your dashboard click-through rates aligned with actual landing page sessions.
Measured Thresholds & Shortener Stack Parameters
| Traffic Source | Redirect Behavior | Database Analytics Action |
|---|---|---|
| Human Mobile / Desktop Browser | Instant 302 + Redis Hit | Write partitioned visit + UTM |
| Slack / Discord / LinkedIn Bot | Instant 302 / OG Preview | Skip PostgreSQL visit insert |
| Headless / Security Scanners | Instant 302 (no block) | Skip PostgreSQL visit insert |