Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 regels
490 B

  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. * @brief Return default robots.txt when init
  9. * @param App $a
  10. * @return void
  11. */
  12. function robots_txt_init(App $a)
  13. {
  14. $allDisalloweds = array(
  15. '/settings/',
  16. '/admin/',
  17. '/message/',
  18. );
  19. header('Content-Type: text/plain');
  20. echo 'User-agent: *' . PHP_EOL;
  21. foreach ($allDisalloweds as $disallowed) {
  22. echo 'Disallow: ' . $disallowed . PHP_EOL;
  23. }
  24. killme();
  25. }