4 ms·
My favourite thing about Anubis is that (in default configuration) it completely bypasses the actual challenge altogether if you set User-Agent header to curl.
by notpushkin 1y ago
My favourite thing about Anubis is that (in default configuration) it completely bypasses the actual challenge altogether if you set User-Agent header to curl.
E.g. if you open this in browser, you’ll get the challenge: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/13ce36fef98a3f4e6d8360c24d6b8434cbb8869b https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/13ce36fef98a3f4...
But if you run this, you get the page content straight away:
curl https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/13ce36fef98a3f4e6d8360c24d6b8434cbb8869b
I’m pretty sure this gets abused by AI scrapers a lot. If you’re running Anubis, take a moment to configure it properly, or better put together something that’s less annoying for your visitors like the OP.
- rezonant 1y agoIt only challenges user agents with Mozilla in their name by design, because user agents that do otherwise are already identifiable. If Anubis makes the bots change their user agents, it has done its job, as that traffic can now be addressed directly.
- hshdhdhehd 1y agoWhat if everyone requests from the bot has a different UA?
- skylurk 1y agoSuccess. The goal is to differentiate users and bots who are pretending to be users.
- trenchpilgrim 1y agoThen you can tell the bots apart from legitimate users through normal WAF rules, because browsers froze the UA a while back.
- hsbauauvhabzb 1y agoCan you explain what you mean by this? Why Mozilla specifically and not WebKit or similar?
- gucci-on-fleek 1y agoDue to weird historical reasons [0] [1], every modern browser's User-Agent starts with "Mozilla/5.0", even if they have nothing to do with Firefox. [0]: https://en.wikipedia.org/wiki/User-Agent_header#Format_for_human-operated_web_browsers https://en.wikipedia.org/wiki/User-Agent_header#Format_for_h... [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#syntax https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/...
- samlinnfer 1y agoThis has basically been Wikipedia's bot policy for a long long time. If you run a bot you should identify it via the UserAgent. https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Found...
- 1vuio0pswjnm7 1y agoIt's only recently, within the last three months IIRC, that Wikipedia started requiring a UA header I know because as a matter of practice I do not send one. Like I do with most www sites, I used Wikipedia for many years without ever sending a UA header. Never had a problem I read the www text-only, no graphical browser, no Javascript
- xena 1y agoThis was a tactical decision I made in order to avoid breaking well-behaved automation that properly identifies itself. I have been mocked endlessly for it. There is no winning.
- seba_dos1 1y agoThe winning condition does not need to consider people who write before they think.
- ranger_danger 1y agoHow is a curl user-agent automatically a well-behaved automation?
- fragmede 1y agoOne assumes it is a human, running curl manually, from the command line on a system they're authorized to use. It's not wget -r.
- ranger_danger 1y agoSounds like the perfect opportunity for bots to use the curl user-agent. How do we know they're not already doing this?
- fragmede 1y agoWe don’t but now that we’ve talked about it publicly on the Internet they’re gonna start doing that. I'm sure they previously were, but now we've gone and told them, uh yeah.
- seba_dos1 1y ago> I’m pretty sure this gets abused by AI scrapers a lot. In practice, it hasn't been an issue for many months now, so I'm not sure why you're so sure. Disabling Anubis takes servers down; allowing curl bypass does not. What makes you assume that aggressive scrapers that don't want to identify themselves as bots will willingly identify themselves as bots in the first place?