Jump to content

Resetting stats and excluding ip address


Recommended Posts

  • 2 months later...
  • 2 years later...

I know this is an old topic, but it's the top entry on google when I searched ...

 

I haven't found an official way, but (so far) this has worked for me -

 

PS 1.5.3.1

 

In /classes/Connection.php

immediately after

public static function setNewConnection($cookie)
{

 

add

if (ip2long(Tools::getRemoteAddr()) == ip2long("11.22.33.44")
|| ip2long(Tools::getRemoteAddr()) == ip2long("55.66.77.88")) return false;

 

where 11.22.33.44 and 55.66.77.88 were the two IP addresses I wanted to ignore ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...