All Blog Posts

Captchas are lazy engineering

The site has an "interactive roadmap" on the homepage where people can upvote my curated list of issues, and I wanted to make sure people don't spam it with repeat votes. This is unauthenticated mind you.

So I added some simple abuse prevention at three different scopes: per IP, per cookie, and globally per issue. A benevolent user simply has their unique cookie stored in each vote so that's easy.

A slightly more hostile user who clears his cookies and wants to vote again, those I block by IP address. Of course they might have a common IP with other users behind DNAT, so I give that some leeway, maybe 5 votes per IP in a given time window.

Then there's the malevolent user, who's scripting tight loops to fill up my database or just generally cause mayhem. To cover that there's a global rate limit per issue, so even a user who's making curl calls from a distributed fleet of computers could only add so many votes per time window.

Pretty basic stuff that wasn't even a half an hour of work with Claude, and this is just for my rinky dink feedback system. So I when I go to Apple's App Store Connect or Amazon's AWS Console and I'm greeted with a Captcha to sign in, I'm like what the hell!

With Apple, I get locked out of my account almost every day and the unlock process includes a Captcha for some reason. With the AWS Console, I like to sign in with my root account, which already requires two-factor, but it also sometimes insists on a Captcha. Why is this?

As a software engineer myself I'm baffled because adding basic rate limiting and exponential backoff is so straightforward. Why are these engineers being so lazy?

Maybe they're trying to increase the chance that there's a human in the loop, but who cares if there's a human in the loop? We've been delegating HTTP calls to our "user agent" (the web browser) since 1992, so what if we're delegating to a different piece of software now?

All I can say is, there is never a valid reason for showing a Captcha aside from pure engineering laziness. I would never put a Captcha on anything I ever built, and neither should any other competent engineer.