3 * @file mod/robots_text.php
4 * @brief Module which returns the default robots.txt
10 * @brief Return default robots.txt when init
14 function robots_txt_init(App $a)
17 /** @var string[] globally disallowed url */
18 $allDisalloweds = array(
24 header('Content-Type: text/plain');
25 echo 'User-agent: *'.PHP_EOL;
26 foreach ($allDisalloweds as $disallowed) {
27 echo 'Disallow: '.$disallowed.PHP_EOL;