Im working on an antileech script and i found a simple command to see if the same ip is connected 2 or more time, then it would stop. But it doesnt seem to work for some reason 😕
heres the script
$ip = $_SERVER['REMOTE_ADDR'];
$Query = "SELECT SUM(threads) FROM connected WHERE ip = '".$ip."'";
$Result = mysql_query($Query);
if ($Result >= 2)
{
print('No more than 2 connection from the same IP at a time');
exit;
}
what its supposed to do is add up the selected tables that have the same ip and if its more or equal to 2 then it would print the about and close the script.
It doesnt seem to be workign and theres no error message to i was wondering if one of you could see why the script isnt working properly