diff --git a/r2/r2/controllers/error.py b/r2/r2/controllers/error.py index a2bb4a875..00bb845f0 100644 --- a/r2/r2/controllers/error.py +++ b/r2/r2/controllers/error.py @@ -77,7 +77,16 @@ toofast = \ Too Many Requests @@ -89,10 +98,11 @@ toofast = \ to discuss easier ways to get the data you want, please contact us any of the following ways.

+

when contacting us, please include your ip address which is: %(ip)s

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

@@ -167,7 +177,8 @@ class ErrorController(RedditController): def send429(self): c.response.status_code = 429 - return toofast + return toofast % dict(ip=request.ip, + logo_url=static(g.default_header_url)) def send503(self): c.response.status_code = 503