Checking requested range

From: Date: Tue, 21 Jun 2005 21:02:43 +0000
Subject: Checking requested range
Groups: php.general 
Request: Send a blank email to php-general+get-217359@lists.php.net to get a copy of this message
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?

« previous php.general (#217359) next »