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