From 085b9b7afaef5c1e76ba84af3daa934c5c09e723 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Sun, 11 Mar 2001 20:45:45 +0000 Subject: [PATCH] Sleep 0.35 seconds to avoid DoS attacks from broken robots --- en/cgi/url.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/en/cgi/url.cgi b/en/cgi/url.cgi index a586b4cad1..d93e9b20aa 100755 --- a/en/cgi/url.cgi +++ b/en/cgi/url.cgi @@ -26,7 +26,7 @@ # # url.cgi - make plain text URLs clickable # -# $FreeBSD: www/en/cgi/url.cgi,v 1.27 2000/10/09 12:27:01 phantom Exp $ +# $FreeBSD: www/en/cgi/url.cgi,v 1.28 2000/12/29 10:49:45 wosch Exp $ use strict; @@ -106,5 +106,8 @@ if ($file =~ m%^(ports/[\w-]+/\w[\w-+.]+)/pkg-descr%) { # print standard footer line print &html_footer; +# Sleep 0.35 seconds to avoid DoS attacks from broken robots +select undef, undef, undef, 0.35; + exit;