Autorise les moteurs sauf les bots

This commit is contained in:
Fred Tempez 2024-09-07 14:11:01 +02:00 committed by Frédéric Tempez
parent 161c1bcb80
commit ffd14a8734

View File

@ -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