プロジェクト

全般

プロフィール

Vote #80939

完了

robots.txt: disallow crawling login, register, and lost password form

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SEO_48
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
48
version_id:
152
issue_org_id:
33658
author_id:
332
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The attached patch adds robots exclusion tags (@@) to login, register, and lost password form.

Currently, Redmine allows web crawlers such as Googlebot and Baiduspider to index those forms. I think it is undesirable for the following reasons:

  • There is no meaningful information there
  • If the Redmine instance requires login, probably the admin doesn't want to publish any information to the internet. It is so bad to be indexed by Google

That can be resolved by the attached patch by adding robots exclusion tags to the pages.


journals

Added tests to the patch.
--------------------------------------------------------------------------------
Setting the target version to 4.2.0.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the patch.
--------------------------------------------------------------------------------
Redmine already generates a @robots.txt@ in @welcome#robots@. Wouldn't this be better suited there, specifically in source:trunk/app/views/welcome/robots.text.erb so that we have a single location where we define behavior for robots?
--------------------------------------------------------------------------------
Holger Just wrote:
> Redmine already generates a @robots.txt@ in @welcome#robots@. Wouldn't this be better suited there, specifically in source:trunk/app/views/welcome/robots.text.erb so that we have a single location where we define behavior for robots?

You are absolutely right. I forgot about the existence of robots.txt for some reason.

The attached new patch uses robots.txt instead of robots meta tag.

--------------------------------------------------------------------------------
Looks good to me, thanks!
--------------------------------------------------------------------------------
Committed patch #33658#note-6.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリSEO_48 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0