How Safari in iOS 12 Blocks Social Media Tracking
Safari in iOS 12 introduced advanced privacy protections designed to stop embedded social media features—such as "Like" buttons, "Share" buttons, and comment sections—from tracking users across the web without their consent. By upgrading its built-in Intelligent Tracking Prevention (ITP) technology, Apple shifted the default behavior of web browsing to isolate third-party trackers, preventing external platforms from monitoring browsing habits across unrelated websites.
Prior to iOS 12, social media platforms could place invisible tracking scripts, interactive buttons, and embedded comment widgets on third-party websites. When a user visited a page containing one of these widgets, the browser would automatically load assets from the social network's servers. This request included existing cookies, allowing the social platform to log the visit, link it to the user's personal profile, and build detailed behavioral profiles—even if the user never clicked the widget.
Safari in iOS 12 targets this mechanism through Intelligent Tracking Prevention 2.0 (ITP 2.0) and the implementation of the Storage Access API. Under this architecture, Safari automatically blocks embedded third-party widgets from accessing their first-party cookies by default. The browser prevents the widget from identifying who the user is as they browse from site to site.
Instead of transmitting identifying data silently in the background, Safari intercepts any interaction with these widgets. If a user voluntarily decides to click a "Like" button or interact with a third-party comment box, Safari prompts the user with an explicit permission dialog. The prompt asks whether the user wants to allow the social network to access its cookies and website data while browsing the current site.
If the user declines, the widget remains inactive and no identifying information is shared. If the user approves, Safari grants temporary access through the Storage Access API, allowing the specific action—such as submitting a comment or registering a "Like"—to complete without granting indefinite tracking privileges across the rest of the web.
In addition to cookie isolation, iOS 12 fortified Safari against device fingerprinting. Fingerprinting attempts to identify devices based on system fonts, hardware configurations, and browser plug-ins. By presenting a standardized, generic system configuration to websites, Safari prevents social tracking networks from circumventing cookie blocks through alternative device-identification techniques.