From 732523ba353f828092c44b78623a208c9820fd09 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Sun, 11 Mar 2001 10:32:58 +0000 Subject: [PATCH] Sleep 0.35 seconds to avoid DoS attacs --- en/cgi/man.cgi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/en/cgi/man.cgi b/en/cgi/man.cgi index 2fcc0d0d03..b3d0597193 100755 --- a/en/cgi/man.cgi +++ b/en/cgi/man.cgi @@ -33,11 +33,12 @@ # BSDI Id: bsdi-man,v 1.2 1995/01/11 02:30:01 polk Exp # Dual CGI/Plexus mode and new interface by sanders@bsdi.com 9/22/1995 # -# $Id: man.cgi,v 1.29 2001-02-25 11:57:57 wosch Exp $ +# $Id: man.cgi,v 1.30 2001-03-11 10:32:58 wosch Exp $ #use Data::Dumper; #use Carp; + $www{'title'} = 'FreeBSD Hypertext Man Pages'; $www{'home'} = 'http://www.FreeBSD.org'; $www{'head'} = qq[$www{'title'} ] . @@ -613,6 +614,9 @@ sub man { print "\n"; print "\n"; + + # Sleep 0.35 seconds to avoid DoS attacs + select undef, undef, undef, 0.35; } sub mlnk { @@ -769,7 +773,7 @@ Please direct questions about this server to URL: $www{'home'}$BASE
ETX - print q{$Date: 2001-02-25 11:57:57 $ $Revision: 1.29 $}; + print q{$Date: 2001-03-11 10:32:58 $ $Revision: 1.30 $}; print "
\n"; print "\n\n"; 0;