User Agents

Web browsers and everyday web tech, explained

Anubis Proof of Work: Why Linux Sites Use Browser Challenges

· 7 min read · Browsers

In this article
  1. Background: The Problem With Bots on Linux Sites
  2. How Anubis Proof of Work Works
  3. Why Linux Sites Prefer Anubis Over CAPTCHAs
  4. Common Problems and Misconceptions
  5. How to Choose a Proof-of-Work System
  6. Costs and Performance Impact
  7. Safety and Privacy Considerations
  8. Frequently Asked Questions

Anubis proof of work is a browser challenge that Linux-focused websites use to block automated traffic, and it works by making a visitor's browser solve a computational puzzle before the page loads. The key reason Linux sites specifically use it is that Anubis is open-source, lightweight, and respects user privacy—it does not rely on cookies, JavaScript-based fingerprinting, or third-party trackers, which aligns with the values of the Linux community. Unlike traditional CAPTCHAs that ask users to identify images or type distorted text, Anubis requires the browser to perform a small amount of work (like computing a hash) in the background, and this usually completes in under a second on modern hardware.

Background: The Problem With Bots on Linux Sites

Linux-related websites—forums, documentation wikis, package repositories, and community news sites—are frequent targets for automated abuse. Bots scrape content, create spam accounts, and perform credential-stuffing attacks. Traditional protections like CAPTCHAs (reCAPTCHA, hCaptcha) are often seen as hostile because they interrupt the user, require third-party scripts, and can be inaccessible to people using screen readers or older browsers. Linux users tend to be privacy-conscious and technically savvy, so many site administrators look for a solution that is self-hosted, does not track users, and does not require external services. Anubis fits that need.

How Anubis Proof of Work Works

Anubis is a self-hosted, open-source proof-of-work (PoW) system. When a user requests a page, the server sends a small JavaScript challenge that asks the browser to find a value that, when hashed together with a server-provided nonce, produces a hash with a certain number of leading zero bits. The difficulty is adjustable: the more leading zeros required, the more work the browser must do. The browser computes the answer and sends it back; the server verifies the hash and then serves the page. This is the same principle behind cryptocurrency mining, but on a tiny scale—a typical challenge takes about 100–500 milliseconds on a desktop CPU.

The challenge is delivered as a small JavaScript file, and the verification is done server-side. Because the work is performed in the browser, it does not require any user interaction. The user simply waits a fraction of a second longer for the page to load. For legitimate users, this is nearly imperceptible. For bots that are not running a full browser (like simple HTTP scripts), the challenge is impossible to solve because they do not execute JavaScript. More sophisticated bots that run headless browsers can solve it, but the added computational cost makes mass scraping or account creation more expensive.

Why Linux Sites Prefer Anubis Over CAPTCHAs

There are several practical reasons Linux-focused sites choose Anubis over traditional CAPTCHAs:

  • No third-party dependencies: Anubis is self-hosted, so no external requests to Google or Cloudflare. This reduces latency and avoids leaking user IP addresses to third parties.
  • No cookies or fingerprinting: Anubis does not set cookies or use browser fingerprinting, which is a major privacy win for users who block trackers.
  • Accessibility: There is no visual puzzle, no audio challenge, and no interaction required. This makes it usable for people with visual impairments or motor disabilities.
  • Open-source trust: The code is public, so users can inspect exactly what it does. This is important for a community that values transparency.
  • Lightweight: The challenge is a few kilobytes of JavaScript, and the server-side verification is simple. It does not add significant load to the server.

In contrast, reCAPTCHA v3 (which is invisible) still runs in the background and sends data to Google. Many Linux users block such domains, which can cause the CAPTCHA to fail or loop endlessly. Anubis avoids that entirely.

Common Problems and Misconceptions

One common misconception is that Anubis is a form of cryptocurrency mining that uses the visitor's CPU for the site owner's profit. That is false. Anubis does not mine any coin; the proof-of-work puzzle is purely a rate-limiting mechanism. The computational effort is discarded after verification—it is not used to generate revenue. The work is also tiny compared to actual mining, so it does not noticeably drain battery or slow down the device.

Another issue is that Anubis can be bypassed by bots that use a full browser engine (like Puppeteer or Selenium). However, the cost of running such bots is higher, and site administrators can combine Anubis with rate limiting or IP reputation to further deter abuse. Also, some users with very old or low-power devices (like a Raspberry Pi) might experience a noticeable delay, but the difficulty can be tuned down.

There is also a misconception that Anubis is a JavaScript-only solution. While the default client is JavaScript, the protocol is language-agnostic; a site could implement a native client, but in practice, JavaScript is the standard because it works in all browsers without installation.

How to Choose a Proof-of-Work System

If you are a site administrator considering a proof-of-work challenge, here are factors to weigh:

  1. Self-hosting vs. third-party: Self-hosted solutions (like Anubis) give you full control and privacy, but require you to maintain the code. Third-party services (like Cloudflare's Turnstile) are easier but introduce a dependency.
  2. User experience: PoW is invisible but adds latency. CAPTCHAs are interactive but can be annoying. Consider your audience's technical comfort.
  3. Security level: PoW raises the cost of abuse but does not stop determined attackers. For high-security needs, combine with other measures.
  4. Accessibility: PoW is inherently accessible, whereas image-based CAPTCHAs are not.
  5. Resource usage: PoW uses client CPU, which is free for you but costs your users. CAPTCHAs use server resources for verification.

Anubis is a good default for a privacy-respecting site, but you might also consider alternatives like Hashcash (the original PoW concept) or Proof of Work modules for nginx.

Costs and Performance Impact

Anubis is completely free to use—it is open-source under the MIT license. The main costs are server resources for generating and verifying challenges, and client CPU time for solving them. On the server side, the verification is a single hash comparison, which is trivial. The challenge generation is also cheap. The client-side cost is a few milliseconds of CPU time, which is negligible on modern desktops. On mobile devices, the delay might be slightly longer, but still under a second. There is no bandwidth cost beyond the small JavaScript file and the challenge response.

Compared to CAPTCHAs, Anubis can actually be faster because it does not require round-trips to external services. A typical reCAPTCHA loads a large script and may take several seconds to initialize. Anubis is a single small script that runs locally.

Safety and Privacy Considerations

Anubis does not collect any personal data. It does not set cookies, does not use local storage, and does not send any information to third parties. The server only sees the IP address (as with any HTTP request) and the submitted proof. The challenge is tied to a session, but the session is not used for tracking. This makes Anubis compliant with privacy regulations like GDPR, as long as you do not add any additional tracking.

One safety note: because Anubis is open-source, you should ensure you are using the latest version to avoid any potential vulnerabilities. Also, since it is a JavaScript challenge, users who disable JavaScript will not be able to load the page. This is a trade-off: you must decide if your audience expects JavaScript to be enabled (which is true for most modern sites).

Frequently Asked Questions

Does Anubis mine cryptocurrency on my computer?

No. Anubis performs a small proof-of-work puzzle that is discarded after verification. It does not mine any coin and does not use your CPU for profit. The work is similar to what a browser does when loading a complex page—negligible.

Why do some Linux sites use Anubis instead of reCAPTCHA?

Because Anubis is self-hosted, open-source, and does not track users. Many Linux users block Google domains, which can break reCAPTCHA. Anubis works without any external requests, so it is more reliable and privacy-friendly.

Can Anubis be bypassed by bots?

Yes, sophisticated bots that run a full browser can solve the challenge. However, it raises the cost of abuse significantly, and it blocks simple scripts that do not execute JavaScript. It is not a silver bullet but is effective against most automated scraping.

Does Anubis work on mobile devices?

Yes, it works on any device with a modern browser that supports JavaScript. The delay is slightly longer on lower-powered devices, but the difficulty can be adjusted by the site administrator.

Is Anubis difficult to set up?

Anubis is designed to be easy to integrate. It can be used as a reverse proxy or as a module for web servers like nginx. The documentation provides clear instructions, and the code is small. Most administrators can set it up in under an hour.

What happens if a user disables JavaScript?

They will not be able to solve the challenge, and the page will not load. This is a deliberate trade-off. If your audience includes users who disable JavaScript, you may need to provide an alternative access method, but for most Linux sites, JavaScript is expected.