$c->block_ip($ip);
$c->res->code(429);
$c->res->message('Too Many Requests');
- $c->res->body('Too Many Requests');
- $c->finish;
+ $c->render(handler => 'bugzilla', template => 'global/ip-blocked', block_timeout => BLOCK_TIMEOUT);
}
}
--- /dev/null
+[% PROCESS global/variables.none.tmpl %]
+
+[% title = "Too Many Requests" %]
+
+[% PROCESS global/header.html.tmpl
+ robots = 'noindex' %]
+
+<h1>[% title FILTER html %]</h1>
+
+<p>
+ We’re sorry, but you have sent too many requests to us recently.
+ You will be unblocked in [% block_timeout / 60 FILTER none %] minutes.
+</p>
+
+[% PROCESS global/footer.html.tmpl %]