1dc270d8cSGreg Roach<?php 2dc270d8cSGreg Roach 310e06497SGreg Roachdeclare(strict_types=1); 410e06497SGreg Roach 5dc270d8cSGreg Roach/** 67c2c99faSGreg Roach * @var array<string> $bad_user_agents 7dc270d8cSGreg Roach * @var string $base_path 8dc270d8cSGreg Roach * @var string $base_url 9dc270d8cSGreg Roach * @var string $sitemap_url 10*e96e110dSGreg Roach * @var iterable<string> $trees 11dc270d8cSGreg Roach */ 12dc270d8cSGreg Roach 13dc270d8cSGreg Roach?> 14d0bad8beSGreg Roach# robots.txt for <?= $base_url ?> 15d0bad8beSGreg Roach 16d0bad8beSGreg Roach<?php if ($base_path !== '') : ?> 17d0bad8beSGreg Roach# CAUTION! This robots.txt needs to be copied to the root folder. 18d0bad8beSGreg Roach<?php endif ?> 19d0bad8beSGreg Roach 20ffa287a1SGreg Roach<?php foreach ($bad_user_agents as $bad_user_agent) : ?> 21ffa287a1SGreg RoachUser-agent: <?= $bad_user_agent ?> 22ffa287a1SGreg Roach 23ffa287a1SGreg Roach<?php endforeach ?> 24ffa287a1SGreg RoachDisallow: / 25ffa287a1SGreg Roach 26d0bad8beSGreg RoachUser-agent: * 27d0bad8beSGreg RoachDisallow: <?= $base_path ?>/admin 28d0bad8beSGreg RoachDisallow: <?= $base_path ?>/manager 29d0bad8beSGreg RoachDisallow: <?= $base_path ?>/editor 30d0bad8beSGreg RoachDisallow: <?= $base_path ?>/account 31*e96e110dSGreg Roach<?php foreach ($trees as $tree) : ?> 32*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/ancestors 33*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/calendar 34*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/compact 35*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/descendants 36*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/family-book 37*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/family-list 38*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/fan-chart 39*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/hourglass 40*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/individual-list 41*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/lifespans 42*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/pedigree 43*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/report 44*e96e110dSGreg RoachDisallow <?= $base_path ?>/tree/<?= $tree ?>/timeline 45*e96e110dSGreg Roach<?php endforeach ?> 46d0bad8beSGreg RoachCrawl-delay: 10 47d0bad8beSGreg Roach 48d0bad8beSGreg Roach<?php if ($sitemap_url !== '') : ?> 49d0bad8beSGreg RoachSitemap: <?= $sitemap_url ?> 50d0bad8beSGreg Roach<?php endif ?> 51