How to Secure CMS Preview Links Before Publishing

Learn how to secure CMS preview links with a practical checklist for signed-out testing, access permissions, token handling, and expiration.

Published
Reading time
6 min read
How to Secure CMS Preview Links Before Publishing
On this page

A CMS preview link can show a draft before it is published, but it may also reveal a private address or grant access to anyone who receives it. Use this checklist to review a preview link and test whether its access matches your approval workflow.

Key Takeaways

  • Check the preview URL’s hostname, path, and query parameters before sharing it.
  • Test the link in a fresh, signed-out browser session and confirm that the draft, not just a public page, is protected as intended.
  • Some preview links contain access tokens; treat those links as sensitive and avoid exposing them in screenshots, logs, or forwarded messages.
  • Confirm permissions, expiration, and revocation in your CMS vendor’s documentation and your organization’s configuration.

1. Compare the preview and published URLs

A published URL is the address readers are intended to visit. A preview URL may point to a separate preview hostname, a draft-specific path, or a route with query parameters that tell the CMS what to display. The exact format depends on the CMS and site configuration; not every preview link contains a token.

Before sharing, inspect these parts:

  • Hostname: Is it the expected preview or staging host? A hostname might reveal the name of an internal environment even if the page itself is protected.
  • Path: Does it contain a draft title, internal project name, or identifier that should not be visible outside the team?
  • Query parameters: The portion after ? may include preview settings, content identifiers, or a token. Do not assume that an unfamiliar value is safe to disclose.
  • Destination: Does the link show the intended draft, rather than another item or a published version?

Compare against the address intended for publication. If you use a URL parsing tool to inspect components, do not paste a real token-bearing link into an online service unless your organization has approved that service for sensitive links.

Advertisement

2. Decide who should be able to preview the draft

Before testing, identify the intended access model with your CMS administrator:

  • Account-restricted preview: Only authorized, signed-in users should see the draft.
  • Shareable preview: Possession of a link may be enough to see the draft, including for someone without a CMS account. This can be intentional, but the link needs appropriate handling and a suitable lifetime.
  • Internal-network preview: Access may also depend on a VPN or another network restriction. Check whether that restriction is actually required by your organization’s policy.

Ask which content the link exposes, who can create and share it, when it stops working, and how to revoke it. A link that meets one workflow’s requirements may be inappropriate for a confidential draft.

Documentation limitation: No CMS vendor documentation was available for review for this checklist. Consult the current documentation for your specific CMS and its preview or approval features, then check your site’s configuration. Do not assume that preview links expire, require sign-in, or become invalid after publication.

3. Run a signed-out access test

Perform this test on a draft you are authorized to check. Coordinate with the administrator if the link contains sensitive material or if test access is monitored.

  1. Record the expected result. For an account-restricted preview, a signed-out visitor should not see the draft. For an intentionally shareable preview, confirm whether a signed-out recipient is expected to see it.
  2. Open a fresh private or incognito window. Do not sign in to the CMS there. If your workflow relies on network restrictions, test both on and off the authorized network where permitted.
  3. Enter the preview link directly. Do not forward it to an unapproved person or service for testing.
  4. Check what appears. A sign-in page or access-denied message is consistent with a restricted workflow. If a page loads, look for a harmless, draft-specific detail that distinguishes it from the published page; a public page loading does not by itself prove the draft is exposed.
  5. Compare the result with the access policy. If a signed-out session can see a draft that should require an authorized account, stop sharing the link and report it to the administrator. If signed-out access is intentional, confirm that the draft is suitable for that sharing model.
  6. Close the private window and document the result safely. Record the access outcome and time without copying the full sensitive URL or token into the QA ticket.

A fresh private window helps remove your ordinary browser session from the test, but it is not proof that every unauthorized user is blocked. Repeat the test with other relevant roles or devices if the approval process requires them.

Advertisement

4. Check expiration and token exposure

If the CMS provides expiring or revocable links, ask an administrator how those controls work for your installation. Where practical, create a test link, confirm it works for an intended reviewer, then check that it no longer reveals the draft after its configured expiration or revocation. Record the result without recording the full link. If the CMS does not provide an appropriate expiration or revocation mechanism, agree on another approved way to share the draft.

A token in a preview URL can function like a credential: someone who obtains the link may be able to use it. Exposure can occur through:

  • Browser history: A visited URL may remain in a user’s history or synced browser data.
  • Screenshots or screen sharing: The address bar may reveal the full link. Hide or redact it before sharing images.
  • Logs and analytics: Servers, proxies, monitoring tools, or analytics systems may record URLs and query strings. Ask administrators about redaction, access controls, and retention.
  • Forwarded messages: A recipient can forward a link beyond the intended reviewers. Use approved channels and limit distribution.
  • Navigation to other sites: Depending on browser and site settings, URL information may be sent in a Referer header. Ask the site team to review the referrer policy and avoid placing secrets in URLs where possible.

If a link is shared accidentally, notify the administrator promptly. Revoke or replace it if the CMS supports that action, and review whether the draft or related information was exposed. Deleting a message alone does not invalidate a link that has already been copied.

Common Mistakes

  • Testing only while signed in: Your existing session can conceal an overly permissive preview configuration.
  • Assuming every preview link requires an account: Some workflows deliberately use shareable links.
  • Assuming every preview link has a token: Inspect the URL and verify the CMS behavior instead.
  • Treating an obscure URL as access control: A hard-to-guess address is not a substitute for the permissions required by your policy.
  • Publishing a screenshot with the address bar visible: Redact sensitive paths and query values before adding screenshots to tickets or documentation.
  • Assuming publication disables preview access: Verify the actual behavior, including any configured expiration or revocation.

Best Practices

  • Use the least permissive preview method that supports the review process.
  • Share sensitive links only with intended reviewers through approved channels.
  • Keep full preview URLs and tokens out of public documents, support tickets, and analytics where possible.
  • Review access after changes to the CMS, preview configuration, or publishing workflow.
  • If a check fails, pause distribution and involve the CMS or site administrator before publishing.

Conclusion

A preview link is safe to share only when its actual access behavior matches the draft’s intended audience. Inspect the URL, test it signed out, and verify the CMS-specific permission and expiration settings before sending it to reviewers.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.