IP Cookie Block


(puma) #1

IP cooking blocking for tracking


(robocoder) #2

http://dev.piwik.org/trac/ticket/42


(nandayo) #3

Hi all, and first of all, congratz for this awsome project.

Then, here is an important (I think) option to be implemented : to be able to exclude my IP from statistics. Indeed, I regularly visit my website, when I make some changes and so on, and I generate a trafic that is not representative. I would like to say piwik “don’t take care about any requests made by xx.xx.xxx.xxx”, you see ?

Is it possible ?

Thanks !


(robocoder) #4

Already requested. See Ticket #43. http://dev.piwik.org/trac/ticket/43


(nandayo) #5

Well, ok but… which plugin allow that ? It is not said on the page you linked, and I didn’t find the way to exclude IP from statistics, even with the last version.

Thanks !


(Karlsson) #6

@nandayo

This feature is in development, it will be included in a later version.

[size=8pt]-----------
Visitenkartenetui-Shop - my site
[/size]


(nandayo) #7

Oh ok, all right, I thought it was already developped, sorry. Can’t wait for it style_emoticons/<#EMO_DIR#>/wink.gif

thx.


(MikeAlx) #8

[quote=nandayo @ Mar 5 2009, 06:55 PM]Oh ok, all right, I thought it was already developped, sorry. Can’t wait for it style_emoticons/<#EMO_DIR#>/wink.gif

thx.[/quote]
Temporary workaround, just wrap your tracker code with a bit of php like this:

<?php
if ($_SERVER['REMOTE_ADDR']!="xx.xx.xx.xx"){
?>
<!-- Piwik -->
[[ your piwik code ]]
<!-- End Piwik Tag -->
<?php
}
?>

Put your IP address in for ‘xx.xx.xx.xx’.


(nandayo) #9

This is indeed a solution style_emoticons/<#EMO_DIR#>/happy.gif thanks


(mehtaabhi) #10

Which effectively means that do the same for any server side scripting we are using for our website. JSP, PHP, ASP etc… got it


(florentelectro) #11

That helped me… Thanks MikeAlx!


(doko7) #12

We have used HitsLink for a few years, and it allows us to blog/exclude our own IP (and our outsourcers’ IP addresses) from the statistics.

It would be quite helpful it this feature could be integrated into Piwik as well, making it more accurate for all of us.

Thanks! style_emoticons/<#EMO_DIR#>/smile.gif


(alpha_one_x86) #13

Please can you add the funtionality of phpmyvisites of link for not count admin (we) in the stat. Thanks.


(vipsoft) #14

That’s already on the roadmap. There are even some contributed patches pending review.


#15

Can we try it ? style_emoticons/<#EMO_DIR#>/smile.gif


(alpha_one_x86) #16

yes with enjoye! style_emoticons/<#EMO_DIR#>/smile.gif


(vipsoft) #17

The trac & svn server is either down or inaccessible. It’s being looked into…


(alpha_one_x86) #18

Where have it and how install it?


(kwd) #19

[quote=MikeAlx @ Mar 18 2009, 05:07 PM]Temporary workaround, just wrap your tracker code with a bit of php like this:

<?php
if ($_SERVER['REMOTE_ADDR']!="xx.xx.xx.xx"){
?>
<!-- Piwik -->
[[ your piwik code ]]
<!-- End Piwik Tag -->
<?php
}
?>

Put your IP address in for ‘xx.xx.xx.xx’.[/quote]
Is there a way to put multiple IP addresses that are not in the same range in this code?


(MarkusK) #20

Actually it’s pretty easy. Just put your addresses in an array and check with in_array ( see http://de2.php.net/in_array )