5 ms·
curl and grep can do this from the command line. Just paste your link between the quotes like so: curl --head --location --silent "yourlinkhere" | grep ^Locati
by ChrisGranger 6y ago
curl and grep can do this from the command line. Just paste your link between the quotes like so:
curl --head --location --silent "yourlinkhere" | grep ^Location;
https://curl.se/ https://curl.se/
- bengtan 6y agoTrue. I was doing something similar with wget. However, I'm wondering whether there's any automated way to do this. I don't really want to be doing 10-20 keypresses manually for each link.
- ChrisGranger 6y agoHmm... I've found a couple of add-ons for Firefox but the latter appears broken. https://addons.mozilla.org/en-US/firefox/addon/short-url-expander/ https://addons.mozilla.org/en-US/firefox/addon/short-url-exp... https://addons.mozilla.org/en-US/firefox/addon/simple-url-extender/ https://addons.mozilla.org/en-US/firefox/addon/simple-url-ex... I also found one for Chrome: https://chrome.google.com/webstore/detail/expand-url/llnlabdcccdihhemekhhddgbaonclebe https://chrome.google.com/webstore/detail/expand-url/llnlabd... I haven't tried them, so YMMV. Edit: the Chrome one appears broken as well. Sigh. Also, perhaps you could make a command line alias or function for your wget command to drastically reduce the number of keystrokes required.
- bengtan 6y agoThat's alright. I wasn't actually expecting that there'd be a ready-made solution since it's quite an obscure use case. Thanks anyway.
- ChrisGranger 6y agoAnother work-around: right-click URL, copy, and paste at https://www.getlinkinfo.com/ https://www.getlinkinfo.com/ to get a report about the link including a list of redirects and the site's Google Safe Browsing status.