you will have to track which specific user is looking at each page... so that you can't have someone simply sit on a page and hit refresh
you can do this with sessions in php
give each visitor's SESSION an array of page names or uri's,
if the current pages name is in the list {
they have already visited it, and skip the ranking
}
if the current page is not in the list {
do the ranking and add page to the list
}
if ( in_array('this_page','$_SESSION['visited']) ) {
/// Do nothing
} else {
$_SESSION['visited'][] = 'this_page';
do_ranking('this_page');
}
session's aren't untrickable, but i think this is what you are looking for