Improved search engine hinting using noindex and nofollow hints

This commit is contained in:
Mia Rose Winter 2024-02-23 10:49:09 +01:00
parent 0abf67bd2c
commit 1ea9cb4daf
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
17 changed files with 66 additions and 1 deletions

View file

@ -9,6 +9,11 @@
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
@inject IStringLocalizer<ConfirmEmail> Localizer @inject IStringLocalizer<ConfirmEmail> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<BoardComponent CenterContent="true"> <BoardComponent CenterContent="true">

View file

@ -10,6 +10,10 @@
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
@inject IStringLocalizer<ConfirmEmailChange> Localizer @inject IStringLocalizer<ConfirmEmailChange> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<BoardComponent CenterContent="true"> <BoardComponent CenterContent="true">

View file

@ -13,6 +13,10 @@
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
@inject IStringLocalizer<ForgotPassword> Localizer @inject IStringLocalizer<ForgotPassword> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<BoardComponent CenterContent="true"> <BoardComponent CenterContent="true">

View file

@ -1,6 +1,10 @@
@page "/Account/ForgotPasswordConfirmation" @page "/Account/ForgotPasswordConfirmation"
@inject IStringLocalizer<ForgotPasswordConfirmation> Localizer @inject IStringLocalizer<ForgotPasswordConfirmation> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<BoardComponent CenterContent="true"> <BoardComponent CenterContent="true">

View file

@ -1,5 +1,9 @@
@page "/Account/InvalidPasswordReset" @page "/Account/InvalidPasswordReset"
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>Invalid password reset</PageTitle> <PageTitle>Invalid password reset</PageTitle>
<h1>Invalid password reset</h1> <h1>Invalid password reset</h1>

View file

@ -1,5 +1,9 @@
@page "/Account/InvalidUser" @page "/Account/InvalidUser"
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>Invalid user</PageTitle> <PageTitle>Invalid user</PageTitle>
<h3>Invalid user</h3> <h3>Invalid user</h3>

View file

@ -2,6 +2,10 @@
@inject IStringLocalizer<Lockout> Localizer @inject IStringLocalizer<Lockout> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<BoardComponent CenterContent="true"> <BoardComponent CenterContent="true">

View file

@ -11,6 +11,10 @@
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
@inject IStringLocalizer<Login> Localizer @inject IStringLocalizer<Login> Localizer
<HeadContent>
<meta name="robots" content="nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<StatusMessage Message="@_errorMessage" /> <StatusMessage Message="@_errorMessage" />

View file

@ -11,6 +11,10 @@
@inject ILogger<LoginWith2fa> Logger @inject ILogger<LoginWith2fa> Logger
@inject IStringLocalizer<LoginWith2fa> Localizer @inject IStringLocalizer<LoginWith2fa> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<StatusMessage Message="@Message" /> <StatusMessage Message="@Message" />

View file

@ -11,6 +11,10 @@
@inject ILogger<LoginWithRecoveryCode> Logger @inject ILogger<LoginWithRecoveryCode> Logger
@inject IStringLocalizer<LoginWithRecoveryCode> Localizer @inject IStringLocalizer<LoginWithRecoveryCode> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<StatusMessage Message="@Message" /> <StatusMessage Message="@Message" />

View file

@ -16,6 +16,10 @@
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
@inject IStringLocalizer<Register> Localizer @inject IStringLocalizer<Register> Localizer
<HeadContent>
<meta name="robots" content="nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<StatusMessage Message="@Message" /> <StatusMessage Message="@Message" />

View file

@ -10,6 +10,10 @@
@inject NavigationManager NavigationManager @inject NavigationManager NavigationManager
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>Register confirmation</PageTitle> <PageTitle>Register confirmation</PageTitle>
<h1>Register confirmation</h1> <h1>Register confirmation</h1>

View file

@ -13,6 +13,10 @@
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
@inject IStringLocalizer<ResendEmailConfirmation> Localizer @inject IStringLocalizer<ResendEmailConfirmation> Localizer
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@Localizer["Title"]</PageTitle> <PageTitle>@Localizer["Title"]</PageTitle>
<StatusMessage Message="@Message" /> <StatusMessage Message="@Message" />

View file

@ -9,6 +9,10 @@
@inject IdentityRedirectManager RedirectManager @inject IdentityRedirectManager RedirectManager
@inject UserManager<ApplicationUser> UserManager @inject UserManager<ApplicationUser> UserManager
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>Reset password</PageTitle> <PageTitle>Reset password</PageTitle>
<h1>Reset password</h1> <h1>Reset password</h1>

View file

@ -1,4 +1,9 @@
@page "/Account/ResetPasswordConfirmation" @page "/Account/ResetPasswordConfirmation"
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>Reset password confirmation</PageTitle> <PageTitle>Reset password confirmation</PageTitle>
<h1>Reset password confirmation</h1> <h1>Reset password confirmation</h1>

View file

@ -15,6 +15,10 @@
@inject EmailTemplateService TemplateService @inject EmailTemplateService TemplateService
@inject IMessageDisplay Messages @inject IMessageDisplay Messages
<HeadContent>
<meta name="robots" content="noindex,nofollow">
</HeadContent>
<PageTitle>@(TitlePrefix + Localizer["Title"])</PageTitle> <PageTitle>@(TitlePrefix + Localizer["Title"])</PageTitle>
<BoardComponent CenterContent="true"> <BoardComponent CenterContent="true">

View file

@ -6,7 +6,6 @@ User-agent: Google-Extended
Disallow: / Disallow: /
User-agent: * User-agent: *
Disallow: /Account
Disallow: /Account/Manage Disallow: /Account/Manage
Disallow: /Email/Confirm Disallow: /Email/Confirm
Disallow: /Email/Unsubscribe Disallow: /Email/Unsubscribe