Safari 12.1: Click logging can not be disabled

The HTML5 ping attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-ping), which allows hyperlink tracking using an asynchronous call, can no longer be disabled in the Safari 12.1 browser.

It is a useful feature, for example, to easily implement custom tracking on a website:


<a ping="/tracking.php" href="http://google.com">Test Link</a>

On the other hand It was massively criticized since it was mainly used by advertisers to track clicks on adverts.

The latest version of Safari no longer allows you to disable the click logging with "ping". In the previous versions it could be turned off via the command line:

defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2HyperlinkAuditingEnabled -bool false

Firefox blocks the ping attribute by default, manual activation is possible. However, Mozilla plans to use this feature in the future without giving the users a shutdown option.

In Chrome, ping is enabled by default, but can still be turned off in the settings with: chrome://flags/#disable-hyperlink-auditing (this feature has been removed from the list of available flags in beta/development versions of Chrome).