Mailinglist Archive: opensuse (2283 mails)

< Previous Next >
Re: [opensuse] What is 'roundcube' & why are people looking for it on my web server?
  • From: Amedee Van Gasse <amedee@xxxxxxxxx>
  • Date: Fri, 06 Feb 2009 15:51:43 +0100
  • Message-id: <498C4E7F.6070200@xxxxxxxxx>
Per Jessen schreef:
David Haller wrote:

You guys have it the wrong way around. You don't want to give 'em
randomness as fast as you can, but you want to give it to them as
_slow_ as you can!

And it doesn't have to be random either. I've redirected dodgy requests
to 'wait.php' for the last 6 years:

--- wait.php ---
ignore_user_abort(0);

$filler=str_repeat(" ",16384);

for( $i=1800; $i; $i-- )
{
if ( connection_status() ) exit(0);
print $_SERVER['REMOTE_ADDR']." -- ".floor($i / 60)." minutes, "
($i % 60)." seconds and counting ...<br/>".$filler;
sleep(1);
flush();
}
print "Done.<br/>".$filler;
--- php end ---



Works great, and hardly any stress on my server.
One detail: you forgot a point in the print line. It should be:

print $_SERVER['REMOTE_ADDR']." -- ".floor($i / 60)." minutes, ".
($i % 60)." seconds and counting ...<br/>".$filler;
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups