]> git.mxchange.org Git - friendica.git/blob - mod/robots_txt.php
Cleanup /format pre-move
[friendica.git] / mod / robots_txt.php
1 <?php
2
3 /**
4  * @file mod/robots_text.php
5  * @brief Module which returns the default robots.txt
6  * @version 0.1.2
7  */
8
9
10 /**
11  * @brief Return default robots.txt when init
12  * @param App $a
13  * @return void
14  */
15 function robots_txt_init(App $a)
16 {
17         $allDisalloweds = array(
18                 '/settings/',
19                 '/admin/',
20                 '/message/',
21         );
22
23         header('Content-Type: text/plain');
24         echo 'User-agent: *' . PHP_EOL;
25         foreach ($allDisalloweds as $disallowed) {
26                 echo 'Disallow: ' . $disallowed . PHP_EOL;
27         }
28         killme();
29 }