Browser challenges for hosted sites

AI-generated summary

fitzy announced that the Discourse hosting platform has implemented browser challenges to mitigate performance degradation caused by a surge in anonymous scraper traffic over the last two to three years. These challenges, distinct from CAPTCHAs as they require no user input and resolve quickly, were introduced in early November.

Trigger Mechanism

Challenges are not issued randomly; they are specifically triggered when a hosted site experiences traffic overload and request queuing due to insufficient capacity. The platform automatically enables challenges during these periods to filter out low-value traffic, ensuring that genuine users can still access the community. Once traffic levels return to a serviceable state, the challenges are automatically disabled.

Exemptions and Eligible Traffic

The system is designed to minimize disruption to legitimate users and bots:

  • Well-behaved Crawlers: Self-identifying clients, including search engines, AI agents, and LLM providers, are exempt from challenges. This list is updated regularly as new acceptable client types are identified.
  • Authenticated Users: Logged-in users and requests authenticated via API keys in HTTP headers are never challenged.
  • Non-HTML Requests: Only requests for the HTML version of a page trigger challenges. Requests for JSON or Markdown formats are exempt.
  • Persistent Verification: Clients that successfully pass a challenge will not be challenged again for a reasonable period.

Technical Requirements

Passing these challenges requires JavaScript to be enabled in the client’s browser. According to fitzy, all contemporary browsers can successfully pass these challenges without significant disruption. The Discourse team encourages hosted customers to provide feedback via standard communication channels, as this is a new feature that may require tweaking to ensure it does not disrupt regular community traffic.

The Discourse hosting infrastructure handles a significant amount of traffic every day. Increasingly over the last 2-3 years, the traffic attributed to anonymous scrapers has disproportionately grown compared to human users and legitimate crawlers.

In many cases, traffic generated by these anonymous scrapers can be grow aggressively, to the point where hosted sites begin to see degradation in performance to a level that we will not tolerate.

Traffic Filtering

The common approach to preventing this kind of traffic is to issue browser (or client) challenges to validate the client is who they say they are: a user operating a browser. A challenge is not the same as a CAPTCHA - no user input is required and typically the challenge is solved in a very short time period with minimal disruption.

As of early November, we have implemented these browser challenges on our hosting platform. Challenges are only issued under specific circumstances.

The primary trigger is when a site detects traffic overload. Discourse (the application) will begin rejecting anonymous traffic when it is experiencing request queuing (ie there is temporarily insufficient capacity to service traffic volume); our hosting platform identifies this scenario and will enable client challenges for a period of time.

The intention is to filter out low-value traffic and ensure real users are still able to access your community during periods of elevated traffic. Challenges are automatically disabled when the traffic volume returns to serviceable levels.

What about crawlers?

As for ‘well-behaved’ crawlers, these are never issued challenges. Crawlers such as those operated by search engines, AI agents, LLM providers, and other self-identifying clients are included in this list. The collection of allowed crawlers changes regularly. When we identify new types of clients that operate within acceptable parameters they are considered eligible for challenge exemption.

Eligible traffic

Challenges are only issued to clients requesting the HTML version of a page - any requests for the JSON or Markdown versions of packages will not trigger challenges. A client that is issued a challenge - and passes - will not be challenged again for a reasonable period of time. Logged-in users will never be issued challenges, or requests that are authenticated with API keys via the HTTP request headers.

Note that challenges require Javascript to be enabled on the client browser, and any contemporary browser will successfully pass the challenge.

Questions?

Please reach out to the Discourse team via your regular communication channels if you have any concerns. This is a new feature of the hosting platform, and it may need to be tweaked over time. Your feedback is invaluable for helping us ensure we are not disrupting regular community traffic.

Last edited by @fitzy 2026-11-27T05:58:15Z

Check documentPerform check on document: