Re: Checking requested range

From: Date: Tue, 21 Jun 2005 22:23:06 +0000
Subject: Re: Checking requested range
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-217368@lists.php.net to get a copy of this message
Neil Doody wrote:
Is there anything in PHP which would allow me to check the requested range of bytes by an client? Basically one of the download scripts I made some time ago got hit by a load of requests for a file, but the server was giving back "416 Requested Range Not Satisfiable". I assume that the user is trying to use a download agent of some kind, but this was killing my server by soaking up all the memory with all these requests. What I wanted to do was check this request and then drop the connection straight away, if it seems suspect, is this possible?
Try http://pear.php.net/package/HTTP_Download

« previous php.general (#217368) next »