On this page
A Microsoft Safe Links URL can obscure the address a message originally pointed to. You can often inspect the embedded destination without opening the link or sending it to an online checker. This guide explains how to do that and what the result can—and cannot—tell you.
Verification note: Current Microsoft documentation was not available for review when this article was prepared. Safe Links behavior and appearance can depend on organizational settings and the Microsoft 365 application in use. Check your organization’s current Microsoft guidance before relying on product-specific details.
Key Takeaways
- A rewritten link can contain both a Safe Links address and an embedded destination, commonly in a
urlquery parameter. - Inspecting that parameter is different from visiting the destination or following its redirects.
- A familiar destination, a successful redirect check, or a Safe Links rewrite does not prove that a message or website is safe.
- Treat message links as potentially confidential. Use your organization’s reporting process when a link is unexpected or suspicious.
Recognize the wrapper and destination
The following is a synthetic illustration, not a real message link or a test of a live service:
https://example.safelinks.protection.outlook.com/?url=https%3A%2F%2Fexample.com%2Freport&data=REDACTED
In this example:
- The outer address is the rewritten link, or wrapper.
- The value of
urlis the encoded destination. Decoding it once giveshttps://example.com/report. - Other parameters belong to the wrapper. Do not assume they are safe to share or remove them from a real link you intend to preserve as evidence.
Actual links may look different. A hostname resembling the example is not, by itself, proof that a link is authentic: lookalike names and misleading message text are possible. Likewise, the visible text in an email can differ from its underlying link address.
Safe Links is intended to provide link protection, but the exact rewriting and checking behavior depends on the product and configuration. Do not infer from a wrapper alone that a particular link was checked, is currently safe, or will be safe when opened later.
Advertisement
How to check a Microsoft Safe Links URL without opening it
First, use your email application’s link-preview or copy-link option to inspect the underlying address without activating it. The available controls vary by application. If you are unsure how to copy a link safely, ask IT support rather than experimenting with a suspicious message.
Treat the copied address as confidential: it may contain recipient-specific information, access tokens, or links to private documents. Avoid pasting it into a public website, chat, ticket, or search engine unless your organization explicitly permits it. Clipboard synchronization, screen sharing, terminal logs, and browser extensions can also expose it.
Inspect the embedded destination locally
If your organization permits local inspection, the following Python script reads a link from the terminal and extracts a single url parameter. It does not visit the wrapper or the destination. It requires Python 3 and uses only its standard library.
Save it as inspect_safelink.py:
from urllib.parse import parse_qs, urlsplit
def main():
raw = input("Paste the copied link: ").strip()
try:
wrapper = urlsplit(raw)
if wrapper.scheme.lower() != "https" or not wrapper.hostname:
raise ValueError("The outer link is not an HTTPS URL with a hostname.")
values = parse_qs(wrapper.query, keep_blank_values=True).get("url", [])
if len(values) != 1 or not values[0]:
raise ValueError("Expected exactly one non-empty url parameter.")
destination = values[0]
parsed = urlsplit(destination)
if parsed.scheme.lower() not in ("http", "https") or not parsed.hostname:
raise ValueError("The embedded destination is not an HTTP(S) URL with a hostname.")
print("Destination scheme:", parsed.scheme)
print("Destination hostname:", parsed.hostname)
if parsed.username is not None or parsed.password is not None:
print("Warning: the destination includes user information before the hostname.")
choice = input("Show the full destination, including any private parameters? [y/N] ")
if choice.strip().lower() == "y":
print(destination)
except ValueError as exc:
print("Could not inspect this link:", exc)
if __name__ == "__main__":
main()
Run it in a private terminal:
python3 inspect_safelink.py
Paste the copied link when prompted. The terminal may display the pasted link, so do not run this during screen sharing or in a session that records commands or output. The script initially displays only the destination’s scheme and hostname; showing the full destination can reveal private path or query information.
For the synthetic example above, the script is intended to identify example.com as the destination hostname. The code was not executed for this article.
The script parses the query parameter once; it does not repeatedly decode the result. If it cannot find exactly one usable url parameter, that does not establish that the message is malicious or legitimate. The link may use a different format, be incomplete, or not be a rewritten link. Escalate it rather than trying to guess.
The script also does not authenticate the wrapper or validate the destination. Check the whole hostname carefully: a familiar name embedded in a longer hostname is not the same as that familiar domain. Lookalike characters can also be misleading.
Advertisement
What inspection and redirect checks cannot tell you
The embedded destination is the next address named in the wrapper, not necessarily the final page. That destination may itself redirect elsewhere. Its content or redirect behavior can also change, vary by recipient, or depend on authentication.
A redirect checker generally needs to make a request to follow redirects. That may expose the submitted address to the checking service or contacted sites, trigger tracking, or interact with a recipient-specific link. A successful check only describes what happened during that check; it cannot establish that the page is trustworthy or that another visit will behave identically.
Do not open a suspicious destination just to finish the investigation. If a message asks you to sign in, pay, or open a document unexpectedly, use a separately verified route to the relevant service or contact the sender through a known channel.
Common Mistakes
- Trusting the visible link text. Inspect the underlying address without clicking; display text can be misleading.
- Treating the wrapper as a safety verdict. A rewritten-looking URL does not authenticate the sender or guarantee the destination is safe.
- Decoding repeatedly. Additional decoding can change the meaning of characters in the destination. Start with the single parsed parameter and escalate ambiguous cases.
- Sharing the full link unnecessarily. Wrapper and destination parameters may contain sensitive or recipient-specific values.
- Assuming a redirect checker proves safety. It observes a request under particular conditions, not every possible future visit.
Best Practices for Suspicious Links
- Do not click, sign in, or enter information while the message is in doubt.
- Use your organization’s phishing-reporting control if available, or contact the designated IT or security team through a known channel.
- Follow that team’s instructions for preserving the original message. Do not forward it or paste its full link into external services unless instructed to do so.
- If you already opened the link or entered credentials, promptly tell the security team what happened and follow its incident-response instructions.
For routine verification, inspect only the information needed for the decision. If a hostname appears familiar but the request is unexpected, independently navigate to the service or confirm the request with the sender using a verified contact method.
Conclusion
You can often distinguish a Safe Links wrapper from its embedded destination without visiting either address. Use that information as one clue, protect the original link’s privacy, and escalate uncertainty rather than treating inspection as a safety guarantee.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.