FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
I built an Express.js middleware that detects bots using behavioral scoring — and published it to npm
How-ToWeb Development

I built an Express.js middleware that detects bots using behavioral scoring — and published it to npm

via Dev.toShreesh Sanyal3w ago

Ever watched your “protected” Express API get farmed by bots anyway? You add IP rate limiting… they rotate IPs. You add CAPTCHAs… your users hate you. You add a WAF… your finance team hates you. So I built ShadowShield — a free, open‑source behavioral security middleware for Express that detects bots by analyzing how they make requests, not just how many . How it works Most rate limiters ask one question: “How many requests did this IP make?” ShadowShield asks five: rpm — How fast are requests coming in? error_rate — What percentage of requests return errors? entropy — How many different endpoints are being hit? cv_gap — How regular is the timing between requests? volume — How much data is being transferred? Each feature is normalized and weighted into a final risk score. If the score exceeds 0.5 , the IP is blocked. The cv_gap feature This is the most interesting signal. Bots are unnaturally consistent. A human using your API will have random gaps between requests — 800 ms, 2.3 s, 400

Continue reading on Dev.to

Opens in a new tab

Read Full Article
15 views

Related Articles

How-To

The Difference between `let`, `var` and `const`

Medium Programming • 4d ago

How-To

Circulation Metrics Framework for Living Systems

Medium Programming • 4d ago

Red Rooms makes online poker as thrilling as its serial killer
How-To

Red Rooms makes online poker as thrilling as its serial killer

The Verge • 4d ago

Don’t Know What Project to Build? Here Are Developer Projects That Actually Make You Better
How-To

Don’t Know What Project to Build? Here Are Developer Projects That Actually Make You Better

Medium Programming • 4d ago

Why Most Developers
Stay Broke
How-To

Why Most Developers Stay Broke

Medium Programming • 4d ago

Discover More Articles