summaryrefslogtreecommitdiff
path: root/resources/views/robots-txt.phtml
blob: d57f510ad332a5adb39e4eda6258ab2203ad41ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php

declare(strict_types=1);

/**
 * @var array<string>    $bad_user_agents
 * @var string           $base_path
 * @var string           $base_url
 * @var string           $sitemap_url
 * @var iterable<string> $trees
 */

?>
# robots.txt for <?= $base_url ?>

<?php if ($base_path !== '') : ?>
# CAUTION!  This robots.txt needs to be copied to the root folder.
<?php endif ?>

<?php foreach ($bad_user_agents as $bad_user_agent) : ?>
User-agent: <?= $bad_user_agent ?>

<?php endforeach ?>
Disallow: /

User-agent: *
Disallow: <?= $base_path ?>/admin
Disallow: <?= $base_path ?>/manager
Disallow: <?= $base_path ?>/editor
Disallow: <?= $base_path ?>/account
<?php foreach ($trees as $tree) : ?>
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/ancestors
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/branches
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/calendar
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/compact
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/descendants
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/family-book
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/family-list
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/fan-chart
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/hourglass
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/individual-list
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/lifespans
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/media-objects
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/pedigree
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/relationships
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/report
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/search
Disallow: <?= $base_path ?>/tree/<?= $tree ?>/timeline
<?php endforeach ?>
Disallow: <?= $base_path ?>/module/statistics_chart
Disallow: <?= $base_path ?>/module/tree
Crawl-delay: 10

<?php if ($sitemap_url !== '') : ?>
Sitemap: <?= $sitemap_url ?>
<?php endif ?>