Statistics


https://forum.kartris.com/Topic6569.aspx
Print Topic | Close Window

By Supermac - Wed 29 Jun 2016
Would it be possible to exclude some IP (or IP's range) from statistics log?
Where should I operate to do that?
Thank you
By Tiggywiggler - Wed 29 Jun 2016
The data is written within method AddNewStatsRecord() in StatisticsBLL.vb. It is called from two different places:

- Line 65 of Category.aspx.vb
- Line 44 of Product.aspx.vb

You can either check the IP address in the two places that call AddNewStatsRecord() or you can check the IP Address inside AddNewStatsRecord(). You can chose based on your preferred way of coding.

Use Current.Request.ServerVariables("REMOTE_ADDR") to detect the IP address.
By Supermac - Wed 29 Jun 2016
Great!
Thank you a lot
By Tiggywiggler - Wed 29 Jun 2016
You are welcome. If you are happy with the answer can you please 'Mark as Answer' so that other people can see that there is a solution (for people viewing the thread in the future) please?

Thank you.