Skip to content

Commit

Permalink
Block search engines from indexing content on Netlify preview builds
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy committed Feb 1, 2024
1 parent 4e741b9 commit e454f56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/source/robots.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Disallow all user agents from the following directories and files
# Disallow all user agents from indexing pages and links in the site on Netlify only.
User-agent: *
Disallow: /_sources/
Disallow: /.doctrees/
Disallow: /*.txt$
Disallow: /.buildinfo$
Disallow: /objects.inv$
Disallow: /
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
PYTHON_VERSION = "3.8"
[build]
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./docs/"
[[headers]]
for = "/*"
[[headers.values]]
X-Robots-Tag = "none"

0 comments on commit e454f56

Please sign in to comment.