1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +00:00

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 ### Fixed
- Squashed a warning when using the fenced code block syntax - 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 - 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 ## v0.21

View file

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