how to check connection to php page
<p>I might have written the title wrong. Sorry for that.</p>

<p>I just wonder if there is a way to check users connection to a php page. </p>

<p>For example, i have a php page called "download.php" and this page lets user to download sth and insert this action to mysql, like that</p>

<pre><code>$query = "INSERT INTO bla bla ";
$result = mysql_query($query);

header('Content-type: application/zip');
header('Content-Length: ' . filesize($file));
header("Content-Disposition: attachment; filename="file.zip");

readfile($file);
</code></pre>

<p>But sometimes, download manager softwares like "orbit" etc... connect this page hundreds of time, and blow up the database. </p>

<p>is there a way to prevent this ?</p>

<p>Thanks</p>
