arp242 / goatcounter

Easy web analytics. No tracking of personal data.
https://www.goatcounter.com
Other
4.39k stars 176 forks source link

Connection refused - Hugo and MX Linux #744

Open fyordsvat opened 3 months ago

fyordsvat commented 3 months ago

I have saved the count JS code locally using Hugo. But accessing your server throws this error

ERROR error calling resources.GetRemote: Get "https://gc.zgo.at/count.js": dial tcp 0.0.0.0:443: connect: connection refused
arp242 commented 3 months ago

It seems that error is coming from Hugo? dial tcp 0.0.0.0:443 is a rather odd IP.

Do you have some sort of DNS-based adblocking that might be returning that?

Or maybe it's just some transient error, and try again?

fyordsvat commented 2 months ago

Do you have some sort of DNS-based adblocking that might be returning that?

This IS the culprit. gc.zgo.at is added to the /etc/hosts file as a link to be blocked by the ad blocker.

Can the https://gc.zgo.at/count.js code be hosted on sites like jsdelivr and then keep them updated regularly via this repo or something? (I sometimes get timeout issues with pkg.go.dev, so I wouldn't recommend it)