# noiz.gr - BASE RULES ONLY. # # The Sitemap plugin appends a generated block below this file at runtime # (rlSitemap::updateRulesInRobotsFile): a Sitemap directive, the excluded-page # list, and any custom rules. That block must NOT be committed. It is absent # here on purpose - a copy sitting in git is how the served file grew to two # Sitemap directives and three excluded-page blocks. # # NEVER quote the plugin's marker line in these comments. Removal strips from # the first occurrence of that marker to end-of-file, so a comment mentioning # it truncates everything below - which is exactly what happened while writing # this file. # # NO BLANK LINES BETWEEN "User-agent: *" AND THE LAST RULE. Googlebot ignores # blank lines inside a group, but RFC-strict parsers - Python's # urllib.robotparser among them - treat one as ENDING the group, which leaves # every rule below it attached to no user-agent and silently ignored. The first # version of this file had a blank line after the User-agent line and parsed as # having no rules whatsoever. Comments inside the group are fine; gaps are not. # # Allow lines come FIRST for the same defensive reason. Google and Bing resolve # by longest match so order cannot matter to them, but a first-match parser # meeting "Disallow: /libs/" before the Allow lines would block the assets. # # After deploying this file, regenerate the block on the host: # php tools/robots-rules.php --apply # # If git shows this file dirty on a dev machine, that is the plugin having # regenerated on localhost - it rewrites the Sitemap directive to point at # local.noiz.gr. Never `git add` it without reading the diff. User-agent: * # Googlebot must be able to fetch the CSS, JS and images under /libs/ and # /plugins/, or it judges every page against an unstyled, scriptless render. # On /guitars/ that is 6 files under /libs/ and 43 under /plugins/; on a # listing page 7 and 32 - jquery.js, jquery.ui.js, system.lib.js, # xajax_core.js and every plugin's stylesheet. Allow: /libs/*.js Allow: /libs/*.css Allow: /libs/*.png Allow: /libs/*.gif Allow: /libs/*.jpg Allow: /libs/*.svg Allow: /libs/*.webp Allow: /libs/*.woff Allow: /libs/*.woff2 Allow: /plugins/*.js Allow: /plugins/*.css Allow: /plugins/*.png Allow: /plugins/*.gif Allow: /plugins/*.jpg Allow: /plugins/*.svg Allow: /plugins/*.webp Allow: /plugins/*.woff Allow: /plugins/*.woff2 Allow: /plugins/*.json # Otherwise these hold PHP, installers and i18n data - nothing a crawler needs. Disallow: /includes/ Disallow: /libs/ Disallow: /plugins/ # Except the bare folder address itself: an empty placeholder page that now says # noindex, which Google can only obey if it may fetch it. It had indexed # noiz.bg/plugins/ under its old placeholder title - the only noiz.bg page it # held on 2026-09-30. "$" = that address and nothing below it. Allow: /includes/$ Allow: /libs/$ Allow: /plugins/$ # Print views and sort/id permutations of pages that already have a canonical. Disallow: /print* # Click measurement hangs ?src=ss|cl&i= on search results for humans # (never for crawlers - see custom/includes/controllers/listing_type.inc.php). # Belt and braces: a token that does leak must not become a crawlable URL. Disallow: /*?src= Disallow: /*&src= Disallow: /*?sort_by= Disallow: /*&sort_by= Disallow: /*?sort_type= Disallow: /*&sort_type= Disallow: /*?id= Disallow: /*&id= # The forum (XenForo at /forum/). Pages that exist per visitor or per action, not # content. /forum/misc/ is the reason for the block: the light/dark switch links carry # a fresh token on every render, and bots fetched 31,485 distinct ones on 2026-09-18 # alone. Not blocked: /forum/css.php, /forum/js/, /forum/styles/, /forum/attachments/ # (Google needs them to render threads and index their pictures), /forum/members/ # (left out of the forum's sitemap instead). Disallow: /forum/misc/ Disallow: /forum/login/ Disallow: /forum/register/ Disallow: /forum/logout/ Disallow: /forum/lost-password/ Disallow: /forum/account/ Disallow: /forum/conversations/ Disallow: /forum/search/ Disallow: /forum/whats-new/ Disallow: /forum/posts/ Disallow: /forum/goto/ Disallow: /forum/online/ Disallow: /forum/admin.php # The forum's own sitemap line is NOT here any more: this base is shared by noiz.gr # and noiz.bg, and noiz.bg has no forum - its robots.txt was pointing Google at # noiz.gr's (2026-09-30). It now comes from noiz.gr's own fl_config.sm_robots_rules # (migrations/db/2026_09_robots_forum_sitemap_gr.sql), in the plugin's block below. ### Rules generated by the Sitemap plugin ### Sitemap: https://noiz.bg/sitemap.xml # Excluded pages: Disallow: /*confirm.html* Disallow: /*listing-details.html* Disallow: /*print.html* Disallow: /404.html* Disallow: /*listing-remove.html* # Additional rules: Disallow: /*keyword-search: # Link previews (2026-10-08): crawlers that fetch a link someone shared. User-agent: facebookexternalhit User-agent: Facebot User-agent: Twitterbot User-agent: LinkedInBot User-agent: Slackbot User-agent: TelegramBot User-agent: WhatsApp User-agent: Discordbot User-agent: SkypeUriPreview Allow: /