What is URL fragment?

The URL fragment is the part of a web address after the # sign. Browsers keep it on the device and do not include it when requesting the page from the server.

What it was made for

Fragments were designed to point to a place inside a page, like example.com/guide#installation jumping to the installation section. Because that is purely a job for the browser, the fragment is not part of the HTTP request. The server receives example.com/guide and nothing after the #.

Why secure sharing tools use it

That behaviour makes the fragment a useful place for a decryption key. A link such as download.example.com/#t=TOKEN&k=KEY lets the browser load the page, read the key from the fragment with JavaScript, and decrypt the content locally. The server never receives the key in a request, and it does not appear in the server's access logs or in the Referer header sent to other sites.

What the fragment does not hide

  • Browser history stores the full URL, including the fragment.
  • Browser extensions with access to the page can read it.
  • The page's own JavaScript can read it. That is the point, but it means you trust the code the server delivers.
  • Anyone who sees the link has the key. The fragment keeps the key away from the server, not away from whoever holds the link.

That is why one-time links are designed to stop working after the first open, and why they should be sent to the recipient directly.

Konfidant puts each share's key in the fragment. How we keep your data safe explains the full flow.

Konfidant shares passwords, keys and files through one-time links, encrypted on your device and deleted after the first view.

Try it free