noindex, nofollow login pages to try and stop bots from getting into infinite loops

This commit is contained in:
Starbeamrainbowlabs 2020-06-11 20:52:25 +01:00
parent 51a50f4bb5
commit beb4e2e968
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
### Fixed
- Squashed a warning when using the fenced code block syntax
- If a redirect page sends you to create a page that doesn't exist, a link back to the redirect page itself is now displayed
- Really fix bots getting into infinite loops on the login page this time by marking all login pages as `noindex, nofollow` with a robots `<meta />` tag
## v0.21

View File

@ -39,6 +39,9 @@ register_module([
header("location: " . $_GET["returnto"]);
}
page_renderer::add_header_html('<meta name="robots" content="noindex, nofollow" />');
$title = "Login to $settings->sitename";
$content = "<h1>Login to $settings->sitename</h1>\n";
if(isset($_GET["failed"]))