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

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 ## Changed
- Updated the [configuration guide](https://starbeamrainbowlabs.com/labs/peppermint/peppermint-config-info.php) to include count of how many settings we have - 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 ## Fixed

View file

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