Skip to content

Check whether your staging site is protected from search indexing

Check whether an unauthorised visitor can access the staging page and whether its response carries the intended crawl directives. Check the production page separately with the production settings.

What you need

For an SEO lead approving a staging environment before a website release.

  • A staging URL, a production URL and the intended access policy.
  • A test account where authorisation is required and the deployment owner's approval.

Check the preview and production as separate environments

  1. Request the staging URL without credentials and record the response.
  2. Where the owner permits access, inspect staging robots and page metadata using the authorised test account.
  3. Check the production URL separately. Give the deployment owner any unexpected access or crawl directive.

A protected preview and a public production page

Synthetic data. The preview requires sign-in. Production is intended to be crawlable.

Scroll the table to see all columns.

A protected preview and a public production page
EnvironmentUnauthorised responseExpected outcome
PreviewSign-in requiredProtected
Production200 with index directivePublic and eligible

The preview requires authentication. The production page responds successfully with the expected directive.

What to hand over

Give the release owner the two responses, the intended policy and any discrepancies.

Limitation. A noindex directive must be accessible to crawlers to be read. Authentication and robots rules have different effects.

Next step

Bring one protected preview URL and its corresponding production path.

Discuss this workflow with Shadyy

Sources