-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aliasing own domain to point to counter.dev #49
Comments
Hello Tezar, interesting, yes, that might be possible. So I understand you add dns entries to your own domain to point to |
Why not use cdnjs or include the script inline? |
@hello-smile6 ad-blockers/privacy extensions usually whitelists requests to same (sub)domains. Aliasing |
Oh. Why don't people just use server-side analytics and avoid an additional request? |
For server-side analytics you need to have access to So yeah, there are some useful tools for doing serverside, and it seems to me that there will be/already is renaissance among them with UX that doesn't look like from the 90's. But still, one superficial request is quite small price for the advantages one can use. But as always, your mileage may vary :) |
@Tezar did you manage to alias it? I have the same problem, it would be nice to have a proven example before experimenting with DNS settings. |
[lunch-break-from-paying-job] |
I have tried this, however I received an error message saying you can't point a Cloudflare CNAME record to that of another customer. I think something has to be done on counter.dev's Cloudflare setup to enable this. I'm not sure though. |
Hmm, yes, that cloudflare disallows this would make sense. You might want to try to point it directly to the servers IP without cloudflare in the middle: 172.104.148.60 Usually this IP would be hidden to avoid direct DDOS attacks, but no need to anticipate that yet as adapting to it would be easy. |
Has anyone had any luck with that. I'd actually like to measure somewhere how many visits do not get trough due to adblockers in order to more appropriately prfioritize this issue. But no idea really. Oh well, oh well. |
ad 1. CNAME is on domain level, i.e. you cant specify URL path, original idea was to point CNAME Problem with CNAME approach is that you end up on the cloudfare edge and it wil try to route your request correctly based on your With IP based it's kinda similar. You reach correct server, but it too looks up the hostname to serve correct files. No hostname mapped => blocked. One solution would for be for @ihucos to setup origin server with wildcard servername rule, if webserver supports it. You would lose CND benefits but gain almost zero config setup, just add Second solution would be to setup reverse proxy (which can be quite straightforward with nginx) or some local script that would forward request from your setup. That way everything would be server<>server and from clients POV nothing goes outside your domains. Caveat is lost client IP address, but not sure if it is used or not (maybe for country location?). In that case some GET parameter would be needed to pass it though. |
Would it be possible to support aliasing under own domain, so one can fetch tracking script from
analytics.owndomain.com
which would be CNAMEd tocounter.dev
?Would help against adblockers.
The text was updated successfully, but these errors were encountered: