Tired of suspicious shortened URLs? With URL Deshortify you can inspect any endpoint, figure out where it is leading you and if it's safe. Deshortify will:
- find out where the shortened URL is really leading you
- figure out if the landing page is protected with HTTPS
- doublecheck the website certificate and assert its validity
Let's take a shortened url like https://bit.ly/3pkH5T9. Where is it pointing to? Just make a request!
curl -X GET https://some-endpoint.deshortify.com/inspect?url=https://bit.ly/3pkH5T9
and you get:
{
"target_url":"https://github.com/Ipanov7/deshortify-docs"
"is_tls":true
"is_redirect":true
"tls_certificate":"OK"
}
target_url
: the actual URL destinationis_tls
: whether thetarget_url
is protected by some kind of TLS certificateis_redirect
: iftrue
, the inspected URL will redirect to thetarget_url
. Otherwise, it is already the final URLtls_certificate
: additional information about the TLS certificate
Status | Description |
---|---|
OK | The certificate is valid and trustworthy. This is not a guarantee that the target webpage is safe, but it is a starting point |
WRONG_HOST | The certificate subject does not match the webpage domain |
EXPIRED | The certificate is no longer valid |
SELF_SIGNED | The certificate is self-signed |
UNVERIFIED | Impossible to verify the certificate |
Detective Doggie is from Freepik - Flaticon