4 ms·
Yes yes yes! I hate URL shorteners. It's not just privacy - I can't decide if I want to click it or jot before I do. I suppose that issue could also be solved
by OJFord 7y ago
Yes yes yes! I hate URL shorteners. It's not just privacy - I can't decide if I want to click it or jot before I do.
I suppose that issue could also be solved with a browser extension.
It'd be nice to do this with DNS rather than an extension though, above point aside, e.g. if already running Pi-hole or similar, send shortener URLs to unshort.link, and redirect immediately.
- tyingq 7y agoPi-hole would only see the hostname, and not the "slug", so that wouldn't work.
- edoceo 7y agoPi-Hole sees the bit.ly DNS lookup,that responds with HTTP/30x to full.domain.tls, which is a second DNS lookup the Pi could catch/filter.
- tyingq 7y agoBut bitly.com/xyz can be mapped to full.domain/abcdef The pi-hole doesn't see the /xyz, or any of the http redirects either.
- OJFord 7y agoWhat I mean is, you'd send `t.co` and similar to your unshort.link server, which then has the `Host` header `t.co` and the path; so it can do the redirect. I know it's not how it works today, but I wasn't describing how it works, I was describing how I'd like it to.
- l1am0 7y agounshort.link has a browser extension for chrome & firefox, you find it on the site. If you directly want to get redirected without showing the url you can activate that feature in the plugins config. Or you can send the shortlinks to http://unshort.link/[http://short.link/sd] http://unshort.link/[http://short.link/sd] and it will directly redirect you
- OJFord 7y agoYes, that's the browser extension that I was referring to when I said I'd rather do it (for all devices) via DNS. 1. Resolve shorterners to unshort.link server 2. Use `Host` header and path to redirect to unshortened page
- l1am0 7y agoWould be awesome if you build something like that! You can get the currently to unshort.link known short link providers in a nice json format from https://unshort.link/providers https://unshort.link/providers Maybe you can run a cronjob setting that urls in some firewall file or so. You can get the redirect info from unshort link also via its api without redirecting, just replace /d/ with /api/ in the GET request: e.g. https://unshort.link/api/https://tinyurl.com/unshortchromeextension https://unshort.link/api/https://tinyurl.com/unshortchromeex... If you build an DNS solution, please do not forget to add the documentation on how to do it via a pull request to the unshort.link repo, so everyone could profit from it