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