Skip to main content
miji.be

How Link Previews Work and Their Security Risks - Safe Operation of Short URLs

Explore the technical mechanisms behind link previews (OGP) generated by SNS and chat apps, and the security risks that arise through short URLs. Learn about preview spoofing attack techniques and defense strategies.

Oct 31, 2026 / About 3 min read

SecurityTechnical

Link previews are a feature where SNS and messaging apps display a preview of link content before users click, allowing them to grasp the destination's overview in advance. Platforms such as Facebook, X (formerly Twitter), LINE, Slack, and iMessage offer link previews, displaying titles, descriptions, and thumbnail images retrieved from OGP (Open Graph Protocol) meta tags. However, when combined with short URLs, this feature can create security risks. In a 2020 study, security researchers Talal Haj Bakry and Tommy Mysk showed that several major messaging apps transmit users' IP addresses to destination servers when generating link previews, raising privacy concerns. Because short URLs can conceal the final destination through redirects, they may be used for "preview spoofing" attacks, where the information displayed in previews differs from the actual destination. This article explains the technical mechanisms of link previews and systematically organizes security risks and countermeasures related to short URLs.

The link preview generation process can be broadly classified into three architectures depending on the platform. The first is the "sender-side generation" approach, where the sender's device accesses the link destination to retrieve OGP information and attaches the preview data to the message. iMessage and Signal adopt this approach. The second is the "server-side generation" approach, where the platform's servers access the link destination to retrieve OGP information. Facebook, X, and LinkedIn use this method. The third is the "receiver-side generation" approach, where the recipient's device accesses the link destination. This approach exposes the recipient's IP address to the destination, which poses a privacy risk. When short URLs are involved, preview generation requests first reach the short URL service's server, then are forwarded to the final destination through redirects. During this process, the short URL service can record the user agent of preview generation requests, identifying which platform generated the preview.

Preview spoofing attacks work by dynamically switching the short URL's redirect destination. The attacker first sets a legitimate website (such as a major news site article) as the short URL's redirect destination. When SNS or chat apps generate link previews, the legitimate site's OGP information (title, description, thumbnail) is retrieved, displaying a preview that looks like the legitimate site. After the preview is generated and cached, the attacker changes the redirect destination to a phishing site or malware distribution site. Users trust the legitimate site information displayed in the preview and click the link, but are actually directed to a malicious site. In phishing, short URLs that hide their destinations can be abused. This attack exploits the assumption that "I checked the preview, so it's safe."

Security measures on the short URL service side can be divided into several layers. First, there are mechanisms that record redirect destination change history and automatically flag short URLs whose destinations change repeatedly within short periods. Repeated changes of the redirect destination within a short time can be a clue for suspecting misuse. The second is a function that checks redirect destinations against Google Safe Browsing API or PhishTank databases and blocks redirects to known phishing or malware distribution sites. The third is a design that displays an interstitial page before redirecting, showing users the final destination URL. This intermediate page should display the destination domain name, SSL certificate status, and Google Safe Browsing verdict, enabling users to make informed decisions. Fourth, requiring CAPTCHA or email verification when creating short URLs can help curb bots from mass-generating malicious short URLs. Combining these measures makes it easier to reduce preview spoofing risks.

Users also have ways to defend themselves. First, rather than relying on link preview information alone, users can check final redirect destinations in advance with short URL expansion services (unshorten.me, CheckShortURL, etc.). Especially for messages containing links to financial institutions or login pages, manually typing the official site URL into the browser's address bar rather than clicking the short URL directly makes it easier to avoid being led to fake sites. One option for corporate security managers is to incorporate link preview spoofing examples into internal security training. The idea of checking links in emails before opening them can also be applied to links in chat apps. The convenience and security of short URLs involve a trade-off, and one approach is to combine technical measures with user education to keep risks down.

Was this article helpful?

Related Articles

Short URL Security - Phishing Risks, Safe Sharing Practices, and Protection Guide

A comprehensive guide to short URL security. Understand phishing risks, malware distribution via shortened links, and best practices for safe sharing.

Short URL Phishing - How to Spot Scams and Protect Yourself from Malicious Links

Learn to identify phishing attacks that use short URLs. Covers 5 common scam patterns, URL preview tools, and practical defense strategies.

Click Fraud Prevention: Protect Short URLs from Bots

Understand click fraud tactics and learn how to defend your short URLs. Covers bot detection, rate limiting, CAPTCHA strategies, and anomaly detection.

Short URLs and Tracking Strategy in the Cookieless Era

As browser restrictions on third-party cookies tighten, this guide covers first-party data collection using short URLs and privacy-compliant tracking methods including UTM parameters, server-side measurement, and fingerprint-less analytics.

Using Short URLs in Slack and Teams - Balancing Link Previews with Trust

Solve link-sharing challenges in Slack and Teams with short URLs. Covers OGP previews, branded links for trust, Bot automation, and click analytics.

Tips for Sharing Links on Social Media - How Each Platform Handles URLs and How to Make Them Look Good

How to share links on X, Instagram, TikTok, and LINE. Covers link previews (OGP), why long URLs look bad, short URL tips, and link-sharing etiquette.

Related Terms

URL Preview

A URL preview is a feature that lets you check the destination URL and a summary of a page before you open a link. Learn how to use it to check where a short URL leads and avoid phishing scams, how it differs from link expansion, and what to look for before opening a link.

Open Graph Protocol (OGP)

A protocol that enables web pages to become rich objects in social media feeds by defining metadata like title, description, and image.

Phishing

A cyberattack that uses deceptive links and websites to trick users into revealing sensitive information.

Input Validation

The process of verifying whether input data from users matches the expected format and range. One of the security measures.

Related Tools

Short URL Expander

Paste a shortened URL to see its redirect path and final destination without actually opening it.

Paste a URL. That's it.

Shorten a URL