How can I add codes to a toplist script to prevent users from cheating by refreshing the page and getting hits for their site to be on top?
something like on surfwap
here is the code on the index.php page
something like on surfwap
here is the code on the index.php page
PHP Code:
if($sid>0)
{
$sites=mysql_fetch_array(mysql_query("SELECT * FROM sites where id='".$sid."' and banned='0';"));
$hin=$sites[6]+1;
mysql_query("UPDATE sites SET hin='".$hin."' WHERE id='".$sid."'");
}
Comment