Sleep 0.35 seconds to avoid DoS attacks from broken robots
This commit is contained in:
parent
bccccb8625
commit
085b9b7afa
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=8976
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue