Patrons seeing Cloudflare rate-limiting rules

Cloudflare rate-limiting rules FAQ

Types of Cloudflare challenges 

Patrons accessing the publicly-accessible catalog of your library/institution may occasionally see challenges presented by Cloudflare. Usually these are no different from other challenges seen around the internet, and will be familiar to anyone who uses the internet regularly. Most of these challenges will either require passing a simple challenge (something like "Please check this box to prove that you are a human") or will require the patron's browser to pass a check. The latter requires no input from the patron, and the screen will give a simple explanation along the lines of "Please wait while we verify you're a human".  These challenges are expected and should not materially interrupt a patron's browsing experience. 

Sometimes, however, a patron may see an error page with a message like "You have been rate-limited" and may also include information like "You have been temporarily banned from using this website". The error number will be shown as Error 429 or 1015. 

What is rate limiting?

Rate limiting can be thought of like a speed limit for websites, and is based on expected "speed" at which most people travel through websites. For example, when browsing a website like a library catalog, the expected behavior is for a patron to search for some criteria (keywords, author names, titles, etc) and examine the results. They may click through a few records, place holds, or add titles to a list, or they may find that their search didn't bring up what they want, and then they may refine or change their search. Unexpected behavior, on the other hand, would be something like searching for 100 separate keywords in the space of a few seconds. 

The unexpected behavior in this example is one way we identify bots (or otherwise automated traffic) abusing search endpoints of websites. Due to the nature of an online catalog (a publicly accessible database of information), they are prime targets for all kinds of traffic that isn't your patrons looking for their next great read. We use rate-limiting to help ensure that your servers are not overrun by non-human requests, which can lead to instability of service, slowness, or even interruptions to your library's catalog. 

What does this mean for your library?

Since legitimate library traffic comes from libraries at a higher rate than from other legitimate users, we are asking for reports of rate limiting seen by library staff at library locations to be sent in using our ticketing system. These reports should include the library/library branch name and the library's public static IP address(es) and/or public static IP range. With this information we can build allowlists which essentially allow your library's traffic to sidestep the rate limit rules. 

If you need assistance in finding your public static IP, you may need to reach out to your IT team, technical department, or your Internet Service Provider (ISP). If you find you do not have a static IP, please open a ticket with us and we can give you some other options. 

What does this mean for your patrons?

Most patrons won't see an impact from these rules. However, some patrons may have workflows that make more requests than expected. Usually, these will resolve themselves after a few minutes. However, if a patron reports that they are being continually rate-limited, please open a ticket with us. Some details that will help us are: 
  1. The patron's workflow, or what they were doing at the time (URLs/search paths can help here)
  2. The IP address the patron is coming from (which can be found at the bottom of all Cloudflare error pages
  3. The Ray ID of the Cloudflare error (also found at the bottom of the Cloudflare error pages)
  4. Anything unusual (the patron is using a VPN, is out of the country, is using AI tools in their navigation of the catalog, etc.)
While it may be that some patrons may see these rate limits, the rate-limit block to the site is not permanent and will resolve in a few minutes. For most patrons, simply understanding what the rate limit is, and why they have seen it can help prevent seeing it again in the future. 

If you have further questions about these tools, or any other tools that we use to keep your catalogs secure and stable, please reach out to us!