# ============================================================== # robots.txt - elegantdentistry.net # WordPress + Rank Math + Wordfence + Elementor + The7 # Host: Flywheel, fronted by Cloudflare # Last reviewed: 2026-09-03 # # -------------------------------------------------------------- # HOW THIS FILE IS SERVED - READ BEFORE EDITING # -------------------------------------------------------------- # This is a PHYSICAL file in the web root. Deployed 2026-09-03. # # It replaced the old GoDaddy Managed WordPress default (176 bytes, # dated 2026-08-12) that came across in the Flywheel migration. # # Because a physical file exists, nginx serves it directly and # WordPress never runs. That means Rank Math's built-in robots.txt # editor has NO EFFECT on this site. Editing it there will appear # to save and will change nothing. # # To change robots.txt you must edit THIS FILE over SFTP, then # purge the Cloudflare cache for /robots.txt. # # Alternative, if you would rather manage it in Rank Math: delete # this physical file, then Rank Math's stored version takes over. # Do not do both. # -------------------------------------------------------------- # # -------------------------------------------------------------- # THE ONE RULE THAT MATTERS # -------------------------------------------------------------- # A crawler obeys exactly ONE group: the most specific one whose # user-agent token matches it. A named group REPLACES the "*" # group for that crawler - it does not add to it. # # Source: Google robots.txt spec, "Only one group is valid for a # particular crawler." # # This is why you must NOT write: # User-agent: Googlebot # Allow: / # Every Disallow below would become invisible to Googlebot. # Naming a crawler grants it nothing. It is already allowed by # the "*" group. Naming it only strips its rules. # # The ONLY legitimate reasons to name a crawler: # 1. It ignores "*" by design (the four Google bots below). # 2. You want to block it (see the opt-out block at the end). # -------------------------------------------------------------- # ============================================================== # 1. GOOGLE SPECIAL-CASE CRAWLERS # These four ignore "User-agent: *" by Google's own design, so # without their own group they receive no rules at all. # (Google-Safety ignores robots.txt entirely, so it is omitted.) # ============================================================== User-agent: AdsBot-Google Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /wp-login.php Disallow: /*?s= Disallow: /*?replytocom= Disallow: /*?no_redirect= Disallow: /*page/*page/ User-agent: AdsBot-Google-Mobile Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /wp-login.php Disallow: /*?s= Disallow: /*?replytocom= Disallow: /*?no_redirect= Disallow: /*page/*page/ User-agent: APIs-Google Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /wp-login.php User-agent: Mediapartners-Google Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /wp-login.php # ============================================================== # 2. EVERY OTHER CRAWLER # # This single group governs all of the following, because none # of them is named anywhere else in this file: # # Search Googlebot, Googlebot-Image, Googlebot-Video, # Googlebot-News, GoogleOther, Storebot-Google, # Google-InspectionTool, Bingbot, msnbot, AdIdxBot, # DuckDuckBot, YandexBot, Baiduspider, PetalBot, # Slurp, Applebot # # AI / answer GPTBot, OAI-SearchBot, OAI-AdsBot, ChatGPT-User, # engines ClaudeBot, Claude-User, Claude-SearchBot, # Google-Extended, Google-CloudVertexBot, # Applebot-Extended, PerplexityBot, Perplexity-User, # meta-externalagent, Meta-ExternalFetcher, # FacebookBot, Amazonbot, Bytespider, CCBot, # cohere-ai, Diffbot, YouBot, omgili, omgilibot # # SEO tools AhrefsBot, SemrushBot, SiteAuditBot, DataForSeoBot, # MJ12bot, rogerbot, Screaming Frog SEO Spider # # All are ALLOWED. To block any of them, use the opt-out block # at the bottom of this file - never an "Allow: /" group. # ============================================================== User-agent: * Allow: / # --- Rendering assets ----------------------------------------- # Google must fetch CSS and JS to render pages. This site is built # with Elementor and The7, both of which generate CSS under # /wp-content/uploads/. Blocking any of this breaks rendering. Allow: /wp-content/uploads/ Allow: /wp-content/themes/ Allow: /wp-includes/js/ Allow: /wp-includes/css/ Allow: /wp-content/plugins/*.css Allow: /wp-content/plugins/*.js Allow: /*.css$ Allow: /*.js$ # --- Admin, login, legacy endpoints --------------------------- Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /wp-login.php Disallow: /wp-register.php Disallow: /xmlrpc.php Disallow: /cgi-bin/ Disallow: /readme.html Disallow: /license.txt # --- Internal search ------------------------------------------ # Infinite URL space. Never useful in an index. Disallow: /*?s= Disallow: /*&s= Disallow: /search/ # --- Blog pagination crawl trap ------------------------------- # THE site-specific rule. The blog pagination link builder appends # "page/N/" to a URL that already carries a query string, so # /blog/?no_redirect=true # becomes # /blog/?no_redirect=truepage/2/page/2/page/17/... # and recurses without limit. Verified live 2026-09-03: these # return HTTP 200 with a 265 KB body each. # # 423 of them are already in Search Console. This is a genuine # INFINITE URL space, which is the one case where Google's own # guidance says to use robots.txt. That is why this is blocked # while the Wordfence and attachment URLs below are not - those # are finite and carry headers Google needs to read. # # The second rule catches the recursion signature itself (two or # more "page/" segments) so it still holds if the query parameter # ever changes. Normal pagination like /blog/page/2/ has only one # "page/" segment and is NOT blocked. # # THIS IS CONTAINMENT, NOT A FIX. The real fix is the pagination # link builder in the theme or plugin. Once it stops generating # these and they return 410, REMOVE both rules so Google can see # the 410 and drop the URLs for good. Disallow: /*?no_redirect= Disallow: /*page/*page/ # --- Feeds, trackbacks, oEmbed -------------------------------- Disallow: /feed/ Disallow: /*/feed/ Disallow: /comments/feed/ Disallow: /trackback/ Disallow: /*/trackback/ Disallow: /embed/ Disallow: /*/embed/ # --- Parameter URLs that duplicate a real page ---------------- Disallow: /*?replytocom= Disallow: /*?print= Disallow: /*?share= Disallow: /*?amp= Disallow: /*?unapproved= # ============================================================== # NOTE A - Wordfence "?wordfence_lh=" URLs are deliberately # NOT blocked. # # Verified on this site 2026-09-03: they return HTTP 200 with an # "X-Robots-Tag: noindex" header and a zero-byte body. That is # Wordfence working as designed. # # Search Console still lists one such URL under "Server error # (5xx)", but that row is STALE - last crawled 2026-05-18, before # the Flywheel migration. It will clear itself on the next crawl. # # Blocking these would stop Googlebot reading that noindex header # and would move the URL from one Search Console row to another. # Same count, different label. It fixes nothing. # # To stop generating them at all: # Wordfence > All Options > Live Traffic Options # > Traffic logging mode > "Security Only" # ============================================================== # ============================================================== # NOTE B - "?attachment_id=" is deliberately NOT blocked. # # Rank Math's "Redirect Attachment URLs" is ON for this site # (verified in settings), so these 301 to the parent post. # Blocking them would stop Google seeing the redirect and would # strand the URLs. Let the redirect do its job. # ============================================================== # ============================================================== # NOTE C - /tag/, /author/ and /category/ are deliberately # NOT blocked. # # Rank Math already sets tag archives and author archives to # noindex, and Google must be able to CRAWL a page to SEE a # noindex. Blocking them in robots.txt would freeze them in the # index in whatever state they are in now. # # Category archives are indexable on purpose and appear in # category-sitemap.xml. Leave them crawlable. # ============================================================== # ============================================================== # NOTE D - WHAT THIS FILE CANNOT FIX # # Current Search Console indexing state, and what robots.txt # does or does not do about each: # # 428 Crawled - currently not indexed NOT fixable here # 400 Alternate page w/ proper canonical benign, and the # pagination rules # above will shrink it # 37 Discovered - currently not indexed NOT fixable here # 23 Blocked by robots.txt intentional # 7 Page with redirect benign # 4 Excluded by noindex intentional # 3 Not found (404) benign # 1 Server error (5xx) stale, see NOTE A # # The 428 + 37 are content-quality and cannibalisation problems # (four competing "teeth whitening cost" pages, four competing # "preventive resin restoration" pages, and so on). Google is # crawling those pages and declining to index them. No robots.txt # directive changes that verdict. Consolidate the duplicates. # # Also note: "Alternate page with proper canonical tag" and # "Excluded by noindex" are NOT errors. They are Search Console # reporting that your canonical and noindex tags are working. # ============================================================== # ============================================================== # 3. OPTIONAL AI / SCRAPER OPT-OUT # # All commented out. Uncomment a block to deny that crawler. # Each needs its own group, because a named group replaces the # "*" rules above rather than extending them. # # Trade-offs worth knowing before you uncomment: # OAI-SearchBot blocking removes you from ChatGPT search # Claude-SearchBot blocking removes you from Claude search # PerplexityBot blocking removes you from Perplexity answers # Google-Extended does NOT affect AI Overviews, only Gemini # training and grounding # GPTBot / ClaudeBot / CCBot training only, safe to block # with no search-visibility cost # # For a local dental practice, being cited by AI assistants is # usually worth more than withholding training data. Note that # this site already draws heavy AI-surface impressions on its # whitening content. The default here is to allow everything. # ============================================================== # --- Model training only (no visibility cost to block) -------- # User-agent: GPTBot # Disallow: / # User-agent: ClaudeBot # Disallow: / # User-agent: CCBot # Disallow: / # User-agent: Google-Extended # Disallow: / # User-agent: Applebot-Extended # Disallow: / # User-agent: meta-externalagent # Disallow: / # User-agent: Bytespider # Disallow: / # User-agent: cohere-ai # Disallow: / # User-agent: Diffbot # Disallow: / # User-agent: omgili # Disallow: / # User-agent: omgilibot # Disallow: / # --- Aggressive SEO crawlers (bandwidth, competitor research) -- # User-agent: AhrefsBot # Disallow: / # User-agent: SemrushBot # Disallow: / # User-agent: MJ12bot # Disallow: / # User-agent: DataForSeoBot # Disallow: / # ============================================================== # 4. SITEMAPS # Verified live 2026-09-03. The index references four children: # /post-sitemap1.xml # /post-sitemap2.xml # /page-sitemap.xml # /category-sitemap.xml # Declaring the index alone is correct; Google follows it down. # ============================================================== Sitemap: https://elegantdentistry.net/sitemap_index.xml # -------------------------------------------------------------- # NOT INCLUDED, ON PURPOSE # # Crawl-delay Google ignores it entirely. Bing honours it and # would throttle crawling of a site that wants # more crawling, not less. It was in the old # GoDaddy file at "3" and is dropped here. # Disallow: /*? The old GoDaddy file blocked EVERY query string. # Too blunt: it also blocked the Wordfence noindex # URLs and any parameterised URL Google should see. # Replaced with the targeted rules above. # Disallow: /calendar/action* and /events/action* # GoDaddy leftovers. This site has no such paths. # Disallow: /wp-content/plugins/ # Blocks plugin CSS and JS and breaks rendering. # Disallow: /wp-includes/ # Same problem. # Host: Deprecated, Yandex-only, ignored by everyone. # Noindex: Never supported in robots.txt. Google dropped # even unofficial support in 2019. # # SEPARATELY, NOT A ROBOTS.TXT JOB: # /elegantdentistry_edited_edited1/?understanding-cp950-encoding- # software-for-optimal-label-printing # A leftover duplicate page carrying a spam-style query string. # Delete the page. Do not paper over it with a Disallow. # --------------------------------------------------------------