Ad fraud and invalid traffic detection
Catching bots and junk traffic before you pay for it or sell it.
Invalid traffic costs you twice. Advertisers pay for impressions no human saw, and publishers get clawbacks or get dropped by demand partners. Off-the-shelf tools help, but they treat your traffic like everyone else's. A detection layer built into your own stack can use signals only you have, and it can act in real time instead of in a report three days later.
What I've built
- A bot and IVT detection platform for our ad stack. It started in Node.js with Redis Streams, MongoDB and ClickHouse, and I moved it to Go when traffic from more publishers started pushing it past what it could handle.
- Browser fingerprinting that feeds identity and fraud checks, with matching implementations in a Go service and a Java (Flink) streaming job that have to stay in exact parity
- Checks like the same fingerprint showing up from too many IPs, which catches a lot of device farms and proxy traffic
- On-device fraud signals in our Android SDK: Play Integrity, root and emulator checks, VPN and network detection, device fingerprinting and behavioral signals
- Signed requests (HMAC-SHA256) between the SDK and backend so tampered or replayed events can be rejected
Design decisions that matter
What goes into a fingerprint. Put unstable fields in the hash and the same real user turns into ten "devices". Leave too much out and different devices collide. We keep one hash over stable fields only, and compare network data like IP range separately instead of baking it into the fingerprint.
Where the check runs. Some checks have to happen before the bid, inside the latency budget. Others are better done in a stream job after the fact. Mixing them up either slows the bidder down or lets fraud through.
Fail open or fail closed. If the fraud service is slow, do you bid anyway or skip? The answer is different for a premium publisher and for unknown traffic, and it should be a decision, not an accident.
How I can help
- Building a fraud or IVT detection service for your SSP, DSP or ad network
- Adding device or browser fingerprinting and identity checks
- Moving detection from batch reports to real-time decisions
- Hardening a mobile SDK against spoofed devices and emulators
Seeing traffic you don't trust?
Email haiderzamanusafxay@gmail.com with what you're seeing and where it's coming from.