mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
noindex, nofollow login pages to try and stop bots from getting into infinite loops
This commit is contained in:
parent
51a50f4bb5
commit
beb4e2e968
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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"]))
|
||||
|
|
Loading…
Reference in a new issue