Hacker News new | ask | show | jobs
by batch12 1010 days ago
In addition to blocking/throttling, I have my services provide bad data to the abusing clients.
1 comments

As in "valid" but false data? Please don't. If you really don't want to indicate rate limiting explicitly, then perhaps return an invalid body, or reset the connection or similar. False positives detecting humans as bots are very common, and even rate limits are often set well within human interaction limits. E.g. more than once I've triggered 429s by opening several e-commerce product pages in new tabs for me to ctrl+tab through and filter down. I also tripped a LinkedIn anti-automation system since I was looking through quite a lot of profiles on my first day to add people - luckily they handled this well, with a clear message explaining what was going on and support reaching out to me proactively (and lifting the restriction after a few hours)
If I block and throttle you already then yes, I reserve the right to break your downstream service by feeding you bad data.