milesmcc / shynet

Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.
Apache License 2.0
2.89k stars 183 forks source link

Statistics included from local development? #259

Closed timptner closed 1 year ago

timptner commented 1 year ago

I'm uncertain if Shynet also includes my site visits and sessions while developing locally. I tried reading the source code but didn't find any exclusions of HTTP_REFERERS or ORIGIN matching localhost or 127.0.0.1.

Do I need to block requests to my Shynet host manually or does Shynet automatically ignore all requests coming from localhost?

haaavk commented 1 year ago

By default Shynet don't ignore any requests. There is an option to add ignored IP's but You have to do it for every service separately. I personally exclude Shynet script during development (Simple if statement + DEV env variable)

CasperVerswijvelt commented 1 year ago

If you go to Manage > Advanced There is a field Allowed origins in which you can set the origins for which you want to record statistics

image