Comment on Cloudflare and (friendly!) bots
TootSweet@lemmy.world 1 day agoHrm, well, now I’m noticing that I’m getting inconsistent results.
I keep getting {“error”:“rate_limit_error”} from the login endpoint, and I’ve made… maybe 10 requests to that endpoint over the course of the day? And I’ve had that block this user (like, my @TootSweet account) from being able to log in. But I really don’t think I’m sending any noticeable amount more traffic than I would be without the bot testing.
But sometimes I get past login and get a Cloudflare page back on another call. (In the unhappy path it tries to DM me, and it’s tried that and failed.)
Maybe I’m just not waiting long enough between requests? I had it set to wait 3 seconds between requests, but maybe I’ll bump it up to 5.
MrKaplan@lemmy.world 1 day ago
You should persist the auth token, rate limits are by IP. They also don’t exclude successful logins currently. This is a limitation in Lemmy. We have currently configured it to allow 5 logins per IP per day, but if you’re lucky you can exceed that, as the consumption is not synchronized between backends at this time.
TootSweet@lemmy.world 1 day ago
Ok. That helps a lot. Thanks much! I’ll take that back to my drawing board and I’d imagine that’ll fix things for me.