usefathom / fathom

Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.
https://usefathom.com/
MIT License
7.55k stars 368 forks source link

Ignore requests from localhost #287

Closed EnKrypt closed 4 years ago

EnKrypt commented 5 years ago

I'm hosting fathom myself on a docker container and I see in the dashboard that it's captured some requests from localhost. (Probably my own activity during development)

Is there a way to blacklist localhost or any other specific host? I did go over some of the other issues and commits that seem to address this, but they don't seem to have applied in my case, or no longer work.

EnKrypt commented 5 years ago

Bumping cause it's been more than a week. No rush, just want to confirm or deny that this is possible. @JackEllis

JackEllis commented 5 years ago

Hi there - not at the moment but you could wrap a check around the trackPageview function to stop it. If you struggle with the code, let me know your URL path (if it’s not localhost) and I’ll send you some code to stop tracking on localhost

EnKrypt commented 5 years ago

@JackEllis I ended up doing just that.

When you have the time, can you review the PR I submitted?