Ping-To

The HTTP Ping-To request header is sent with a hyperlink auditing request to identify the destination URL being navigated to.

Usage

The Ping-To header is part of the HTML Standard's hyperlink auditing feature. When a user clicks a link with the ping attribute, the browser sends POST requests to the URLs listed in the ping attribute. These requests include Ping-To to specify the destination URL and Ping-From to specify the source page.

The ping attribute exists to let servers track link activation without relying on redirects or JavaScript event handlers. The browser handles the entire process. The hyperlink audit requests run in the background, separate from the main navigation. The user moves directly to the linked page while the auditing requests complete asynchronously.

The Ping-To header contains the full URL of the hyperlink target. This allows tracking servers to record where the user navigated and correlate the destination with the source page in Ping-From.

Hyperlink auditing is supported by Chromium-based browsers, Firefox, and Safari. Different browsers implement varying privacy controls around the ping attribute. Some block cross-origin ping requests by default or require secure contexts.

Values

Destination URL

The value is the full URL of the hyperlink target. The URL includes the scheme, host, path, and any query string or fragment identifier from the href attribute.

Example

A user clicks a link pointing to https://external.example.re/resource on a page with a ping="https://analytics.example.re/track" attribute. The browser sends the navigation request to the destination and a separate POST request to the analytics endpoint.

POST /track HTTP/1.1
Host: analytics.example.re
Ping-From: https://news.example.re/article/123
Ping-To: https://external.example.re/resource
Content-Type: text/ping

Takeaway

The Ping-To header identifies the destination URL in hyperlink auditing requests, allowing tracking servers to record where users navigate without redirects or JavaScript.

See also

Last updated: March 6, 2026