From 01c69f07129318ad40e7173bac12129ac36752a0 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 7 Sep 2024 14:11:01 +0200 Subject: [PATCH] Autorise les moteurs sauf les bots --- core/class/sitemap/SitemapGenerator.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/class/sitemap/SitemapGenerator.class.php b/core/class/sitemap/SitemapGenerator.class.php index bf9b5076..dbaa0cd4 100644 --- a/core/class/sitemap/SitemapGenerator.class.php +++ b/core/class/sitemap/SitemapGenerator.class.php @@ -128,7 +128,17 @@ class SitemapGenerator */ private $sampleRobotsLines = [ "User-agent: *", + "Disallow: /", + "User-agent: Googlebot", "Allow: /", + "User-agent: bingbot", + "Allow: /", + "User-agent: Slurp", + "Allow: /", + "User-agent: DuckDuckBot", + "Allow: /", + "User-agent: Baiduspider", + "Allow: /" ]; /** * @var array list of valid changefreq values according to the spec