Skip to content

Commit

Permalink
Merge pull request #83 from NixOS/joerg-ci
Browse files Browse the repository at this point in the history
add robots.txt
  • Loading branch information
Mic92 authored May 18, 2024
2 parents 4f40ed4 + caf2e72 commit 981901e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/nixos-wiki/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ in
forceSSL = lib.mkDefault true;
locations."=/nixos.png".alias = ./nixos.png;
locations."=/favicon.ico".alias = ./favicon.ico;
locations."=/robots.txt".alias = ./robots.txt;
};
};
}
20 changes: 20 additions & 0 deletions modules/nixos-wiki/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
User-agent: *
Disallow: /index.php?diff=
Disallow: /index.php?oldid=
Disallow: /index.php?title=Help
Disallow: /index.php?title=Image
Disallow: /index.php?title=MediaWiki
Disallow: /index.php?title=Special:
Disallow: /index.php?title=Template
Disallow: /wiki/Special:
Disallow: /api.php
Disallow: /index.php?returnto=
Disallow: /index.php?*userExpLevel=

# Allows robots to find all the pages containing content
Allow: /wiki/Special:AllPages

# Allow the Internet Archiver to index action=raw and thereby store the raw wikitext of pages
User-agent: ia_archiver
Allow: /*&action=raw
Allow: /*&action=edit

0 comments on commit 981901e

Please sign in to comment.