Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Selfhosted
  3. Any suggestions for a link UNshortener?

Any suggestions for a link UNshortener?

Scheduled Pinned Locked Moved Selfhosted
10 Posts 7 Posters 8 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jherazobJ This user is from outside of this forum
    jherazobJ This user is from outside of this forum
    jherazob
    wrote last edited by
    #1

    Checking for this, i see that the only one was the old unshort.link, but the repo was discontinued

    antsuA S E John ColagioiaJ SeanV 5 Replies Last reply
    28
    • jherazobJ jherazob

      Checking for this, i see that the only one was the old unshort.link, but the repo was discontinued

      antsuA This user is from outside of this forum
      antsuA This user is from outside of this forum
      antsu
      wrote last edited by
      #2

      I understand this is not exactly what you’re asking for, but if you have access to a terminal, you can “unshorten” a link with:

      curl --head -L https://example.com/short | grep: location

      D jherazobJ 2 Replies Last reply
      16
      • antsuA antsu

        I understand this is not exactly what you’re asking for, but if you have access to a terminal, you can “unshorten” a link with:

        curl --head -L https://example.com/short | grep: location

        D This user is from outside of this forum
        D This user is from outside of this forum
        DasFaultier
        wrote last edited by
        #3

        Very much this.

        1 Reply Last reply
        6
        • jherazobJ jherazob

          Checking for this, i see that the only one was the old unshort.link, but the repo was discontinued

          S This user is from outside of this forum
          S This user is from outside of this forum
          solrize@lemmy.ml
          wrote last edited by
          #4

          It’s a little complicated. Sometimes the curl command further up works, but sometimes the redirection is done in an html meta tag or even with javascript. I have a messy python script that has a bunch of site specific code to bypass redirects and clean up tracking links. I can’t post it in its present condition (it has some private info embedded) but I’ve been wanting to clean it up and post it sometime.

          1 Reply Last reply
          12
          • jherazobJ jherazob

            Checking for this, i see that the only one was the old unshort.link, but the repo was discontinued

            E This user is from outside of this forum
            E This user is from outside of this forum
            endofline@lemmy.world
            wrote last edited by
            #5

            I’ve not used it, but your question got me wondering so I searched and found the following site which tries to navigate various redirect methods to find the final destination. I’d be curious to know how well it works.

            https://www.redirect-checker.org/

            jherazobJ 1 Reply Last reply
            5
            • antsuA antsu

              I understand this is not exactly what you’re asking for, but if you have access to a terminal, you can “unshorten” a link with:

              curl --head -L https://example.com/short | grep: location

              jherazobJ This user is from outside of this forum
              jherazobJ This user is from outside of this forum
              jherazob
              wrote last edited by
              #6

              It is not enough for the increasingly common share.google links for example, and i bet there’s more like this

              1 Reply Last reply
              9
              • E endofline@lemmy.world

                I’ve not used it, but your question got me wondering so I searched and found the following site which tries to navigate various redirect methods to find the final destination. I’d be curious to know how well it works.

                https://www.redirect-checker.org/

                jherazobJ This user is from outside of this forum
                jherazobJ This user is from outside of this forum
                jherazob
                wrote last edited by
                #7

                I was hoping for a self-hosted resource, not a remote API, since this is the Selfhosted community

                1 Reply Last reply
                4
                • E This user is from outside of this forum
                  E This user is from outside of this forum
                  endofline@lemmy.world
                  wrote last edited by
                  #8

                  Whoops, my mistake. I did not check where this was posted. Sorry about that.

                  1 Reply Last reply
                  2
                  • jherazobJ jherazob

                    Checking for this, i see that the only one was the old unshort.link, but the repo was discontinued

                    John ColagioiaJ This user is from outside of this forum
                    John ColagioiaJ This user is from outside of this forum
                    John Colagioia
                    wrote last edited by
                    #9

                    I developed this script for creating permanent/static archives of social media exports, so it’s not a full solution - not a web service, expects file inputs, uses a probably incomplete list of shorteners to avoid pulling real pages - but it along with the shorteners.txt file in the same repository, iterating to find a domain not on the list, might at least inspire a solution, if it’s not good for your specific cases.

                    1 Reply Last reply
                    2
                    • jherazobJ jherazob

                      Checking for this, i see that the only one was the old unshort.link, but the repo was discontinued

                      SeanV This user is from outside of this forum
                      SeanV This user is from outside of this forum
                      Sean
                      wrote last edited by
                      #10

                      I’m sure there are better alternatives (going to look at some of the other suggestions here), but I usually just drop the link into https://www.expandurl.net/

                      1 Reply Last reply
                      0

                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • All Topics
                      • Popular
                      • World
                      • Users
                      • Groups