Send `x-robots-tag: noindex,nofollow` with the login page

SemrushBot, you better obey this one
This commit is contained in:
Starbeamrainbowlabs 2020-10-26 18:59:53 +00:00
parent e0d5d72f08
commit 880c9e3796
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
## Changed
- Updated the [configuration guide](https://starbeamrainbowlabs.com/labs/peppermint/peppermint-config-info.php) to include count of how many settings we have
- Also send a `x-robots-tag: noindex, nofollow` HTTP header for the login page (Semrush Bot, you better obey this one)
## Fixed

View File

@ -43,6 +43,7 @@ register_module([
header("location: " . $_GET["returnto"]);
}
header("x-robots-tag: noindex, nofollow");
page_renderer::add_header_html('<meta name="robots" content="noindex, nofollow" />');