# Should I use robots.txt or noindex to keep a page out of search?

Canonical: https://www.namesilo.com/questions/websites-and-ai/should-i-use-robots-txt-or-noindex-to-keep-a-page-out-of-search

Published: 2026-11-17

Last updated: 2026-11-19

Topic: Websites & AI

It depends on the platform’s capabilities and your requirements. Use an appropriate noindex directive on a crawlable page when you want supporting search engines to exclude it. Blocking crawling in robots.txt can prevent the crawler from seeing that directive and does not reliably remove a known URL from results. For private content, require authentication rather than relying on either mechanism.

Search exclusion is not access control

Anyone with the URL may still open a public noindex page. Choose password protection or proper authorization when the information itself must remain confidential.

Your next steps

Decide whether access must be private

Use appropriate authentication if needed

Publish crawlable noindex for search exclusion

From a name to a working website

Domain registration, site creation, and hosting are separate tasks, even when a provider bundles them. Keep control of your domain and check what can be exported before committing your content and business workflows to a builder.

Ownership: Registrar access and content rights.

Features: Forms, payments, email, and integrations.

Portability: Code, data, assets, and backend dependencies.

Launch: Mobile usability, HTTPS, redirects, and working forms.

## Sources

- [Google Search: technical requirements](https://developers.google.com/search/docs/essentials/technical)
