From 8b386b9c5904a0a8c161ef9dbbbf5105e17ddaa1 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Thu, 2 Feb 2012 09:17:34 -0800 Subject: [PATCH] Share a request rate limit reminder on both 429 pages. --- r2/r2/templates/ratelimit_base.html | 3 +++ r2/r2/templates/ratelimit_throttled.html | 2 -- r2/r2/templates/ratelimit_toofast.html | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/r2/r2/templates/ratelimit_base.html b/r2/r2/templates/ratelimit_base.html index 415a7f643..2d8beed3a 100644 --- a/r2/r2/templates/ratelimit_base.html +++ b/r2/r2/templates/ratelimit_base.html @@ -18,5 +18,8 @@

whoa there, pardner!

${self.body()} +

as a reminder to developers, we recommend that clients make no + more than one + request every two seconds to avoid seeing this message.

diff --git a/r2/r2/templates/ratelimit_throttled.html b/r2/r2/templates/ratelimit_throttled.html index 95208fb6b..fde0bdfa5 100644 --- a/r2/r2/templates/ratelimit_throttled.html +++ b/r2/r2/templates/ratelimit_throttled.html @@ -12,5 +12,3 @@ any of the following ways.

  • ratelimit@reddit.com
  • when contacting us, please include your ip address which is: ${request.ip}

    -

    as a reminder, we recommend that clients make no more than one -request every two seconds to avoid being blocked like this.

    diff --git a/r2/r2/templates/ratelimit_toofast.html b/r2/r2/templates/ratelimit_toofast.html index 5f98d6bc9..8778b2337 100644 --- a/r2/r2/templates/ratelimit_toofast.html +++ b/r2/r2/templates/ratelimit_toofast.html @@ -1,8 +1,9 @@ <%inherit file="ratelimit_base.html"/>

    you appear to be a search engine spider or are coming to us via -AppEngine. to prevent abuse, we maintain a one request per second speed +AppEngine. to prevent abuse, we maintain a one request per second hard speed limit from these sources. please wait a moment and try again.

    +

    if you are not a search engine spider, but are spoofing one via your browser's user agent string, please change your user agent string to avoid seeing this message again.