Created
January 10, 2023 22:33
-
-
Save johnbocook/8068c633d7ca61e2290e03665e543972 to your computer and use it in GitHub Desktop.
Robots.txt example rules: https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example 1: Block only Googlebot | |
User-agent: Googlebot | |
Disallow: / | |
# Example 2: Block Googlebot and Adsbot | |
User-agent: Googlebot | |
User-agent: AdsBot-Google | |
Disallow: / | |
# Example 3: Block all crawlers except AdsBot (AdsBot crawlers must be named explicitly) | |
User-agent: * | |
Disallow: / | |
# Sitemap Example: Full url location of sitemap | |
Sitemap: https://example.com/sitemap.xml | |
Sitemap: https://www.example.com/sitemap.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment