Security & Privacy

Deutsche Bahn Blocks Linux Users: Bot Glitch or Worse?

Ever tried to buy a train ticket only to be told you're a bot? Deutsche Bahn’s website managed to do just that, but only to Linux users. A bizarre error code locked out an entire operating system.

Screenshot of Deutsche Bahn's website showing an error message.

Key Takeaways

  • Deutsche Bahn's website mistakenly locked out Linux users due to a 'bot detection' error.
  • The error was triggered by the 'Linux' string in the browser's User-Agent.
  • The lockout is suspected to be linked to increased efforts by users to scrape fare data.

When did your operating system become suspicious? For a brief, infuriating period, trying to book a train ticket on Germany’s Deutsche Bahn (DB) website meant you might get an immediate “error 751.” The site, bahn.de, apparently decided that if you were running Linux, you were definitely a bot. No amount of logging in or explaining yourself helped. The culprit? A simple “Linux” string in your browser’s User-Agent. Yes, that’s it. They were blocking people based on their OS.

The Accidental Open Source Purge

It started subtly. Users on Reddit’s r/deutschebahn began noticing the lockout. Some reported getting blocked after just a few clicks, like looking for earlier connections. Then came the confirmation: it was a Linux thing. This wasn’t a targeted attack; it was an accidental, widespread lockout. The train operator’s IT arm, DB Systel, apparently has its fingers in a lot of pies. And sometimes, those pies get burnt.

Normal traffic can get caught in this sometimes, they said, while emphasizing that they are working to bring those cases down.

Corporate Apology: A Tale of Two Responses

Deutsche Bahn eventually issued a statement to heise online. A spokesperson claimed Linux users should be able to access the site. Security systems, they explained, look at traffic, origins, and browser traits. Apparently, sometimes normal traffic gets flagged. They are working on it. Which is what companies always say. Heise, however, tested again. A Linux User-Agent on Windows still tripped the alarm on the same day. That’s not a great look. It suggests the “fix” was either superficial or non-existent.

My Own Little Test Drive

So, I decided to poke the bear myself. On a Fedora Workstation with a VPN active, I hit bahn.de on Firefox in private mode. I spammed menus, reloaded like a manic tourist. Nada. Then an Ubuntu VM. Same result. No lockout. The portal remained blessedly accessible. It seems the immediate crisis, the one that actually locked people out, has passed. False positives, though? Those probably linger. It’s the nature of these overly enthusiastic security systems.

The ‘Why’ Behind the Blunder

The chatter online suggested this blooper might be tied to a recent surge in projects scraping DB’s fare data. Companies and hobbyists alike have been building tools to analyze ticket prices, and DB Systel likely implemented a heavy-handed bot detection to stop it. But instead of fine-tuning their algorithms, they swung a sledgehammer. They caught the legitimate users. Classic corporate overreach. It’s a familiar story: good intentions, bad execution, and an unsuspecting user base caught in the crossfire.

This isn’t just about a website glitch. It’s about a fundamental misunderstanding of the open-source community. Blocking users based on their OS without clear, granular detection is lazy. It alienates a significant user base. And frankly, it’s bad business. Are we sure DB Systel isn’t building its own walled garden, just with trains?

Did Deutsche Bahn Really Mean to Block Linux Users?

No. It’s widely believed to have been an accidental consequence of overly aggressive bot detection. The company stated its security systems monitor traffic behavior, request origins, and browser traits to identify threats. Apparently, the “Linux” identifier in the User-Agent string was mistakenly flagged as a bot indicator by these systems.

How Did They Fix It?

Deutsche Bahn claims they are working to reduce false positives. While initial tests by publications like heise online suggested the issue persisted on the same day as their response, subsequent independent testing by this publication showed no direct lockout. It’s likely that the specific User-Agent string that triggered the block was whitelisted or the bot detection logic was refined to be less sensitive to OS identifiers.

Will This Happen Again?

It’s possible. Overzealous bot detection systems are notorious for flagging legitimate users. While DB claims to be addressing the issue, false positives can still occur, especially if new scraping attempts or other suspicious activities prompt further security updates. Users running Linux should remain vigilant, but the immediate, widespread lockout appears to have been resolved.


🧬 Related Insights

Jordan Kim
Written by

Infrastructure reporter. Covers CNCF projects, cloud-native ecosystems, and OSS-backed platforms.

Worth sharing?

Get the best Open Source stories of the week in your inbox — no noise, no spam.

Originally reported by It's FOSS News

Stay in the loop

The week's most important stories from Open Source Beat, delivered once a week.