9/20/2005
Shortstat Hack To Remove Local Views
Prevent your own pageviews from appearing in Shortstat stats
Create a file called _getmyip.php in your Shortstat directory with the following code:
Add this code to the very top of shortstat/inc.stats.php:
@include(‘_myip.php’);
if($_SERVER[‘REMOTE_ADDR’] == $myip) exit;
Now open up _getmyip.php in a browser, and check to see that it writes the _myip.php file properly.
Call this page up whenever you are working on or viewing your site to prevent your pageviews from skewing your data.
To be secure, rename _getmyip.php to something unique so someone can’t reset your IP address.
Popularity: 7%



May 1st, 2008 at 8:08 am
affordable auto insurance quotes
necklaces hurl evades inexpensively,