Sleep 0.35 seconds to avoid DoS attacs

This commit is contained in:
Wolfram Schneider 2001-03-11 10:32:58 +00:00
parent ea8f676d91
commit 732523ba35
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=8938

View file

@ -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[<A HREF="$www{'home'}">$www{'title'}</a> ] .
@ -613,6 +614,9 @@ sub man {
print "</BODY>\n";
print "</HTML>\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: <A HREF="$BASE" target=_parent>$www{'home'}$BASE</a><br>
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 "<br>\n";
print "</BODY>\n</HTML>\n";
0;