From b01535c785450d84a66310ab415c73a2cefeb4bd Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 3 Dec 2024 21:29:34 +0000 Subject: [PATCH] Bug 1934646 - bugzilla-dev is showing up in Google search results --- template/en/default/robots.txt.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template/en/default/robots.txt.tmpl b/template/en/default/robots.txt.tmpl index 348ec74e25..1884ff7236 100644 --- a/template/en/default/robots.txt.tmpl +++ b/template/en/default/robots.txt.tmpl @@ -1,9 +1,9 @@ User-agent: * Disallow: [% basepath FILTER none %] Crawl-delay: 30 +[% IF Bugzilla.localconfig.urlbase == "https://bugzilla.mozilla.org/" %] [% USE Bugzilla %] - Allow: [% basepath FILTER none %]$ Allow: [% basepath FILTER none %]index.cgi @@ -24,3 +24,5 @@ Disallow: [% basepath FILTER none %]banmyipforever.cgi [% FILTER remove('#.*') %] [% Hook.process("end") %] [% END %] + +[% END %]