]> git.mxchange.org Git - friendica.git/blob - mod/robots_txt.php
Simple robots.txt for server 404 log
[friendica.git] / mod / robots_txt.php
1 <?php
2 /**
3  * return the default robots.txt
4  * @version 0.1.0
5  */
6
7 /**
8  * Simple robots.txt
9  * @inheritdoc (?)
10  */
11 function robots_txt_init(App $a) {
12
13     /** @var string[] globally disallowed url */
14     $allDisalloweds=array(
15         '/settings/',
16         '/admin/',
17         '/message/',
18     );
19
20     header("Content-Type: text/plain");
21     echo "User-agent: *\n";
22     echo "Disallow:\n";
23     echo "\n";
24     echo "User-agent: *\n";
25     foreach($allDisalloweds as $disallowed) {
26         echo "Disallow: {$disallowed}\n";
27     }
28     killme();
29 }