Opened 5 months ago
Last modified 5 months ago
#13780 new enhancement
Block robots from ticket (comment) edit history
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | next-stable-1.6.x |
Component: | ticket system | Version: | 1.6 |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
To reduce server load caused by crawlers.
To disarm spam links in ticket comment history (that is, if spam comments have not been properly deleted).
Add a rel="nofollow"
attribute to the link to the ticket description edit history. (The page it points to has <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
already.)
Add a rel="nofollow"
attributes to the links to ticket comment edit history.
Add <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
to ticket comment edit history pages.
AFAIK, there are crawlers that won't access nofollow-links if there are no other references. The semantics however just says to not add weight to such links in ranking, which is also desired here.
Attachments (0)
Change History (3)
comment:1 by , 5 months ago
Description: | modified (diff) |
---|
comment:2 by , 5 months ago
Component: | web frontend → ticket system |
---|---|
Milestone: | → next-stable-1.6.x |
comment:3 by , 5 months ago
Workaround is to add the following lines to your robots.txt:
Disallow: /ticket/*?action=* Disallow: /ticket/*?cnum_hist=* Disallow: /ticket/*?cversion=* Disallow: /ticket/*?replyto=* Disallow: /ticket/*?version=*
It seems that it makes sense.
The
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
line is declared at source:/tags/trac-1.6/trac/templates/diff_view.html@:27. The template is used in trac/ticket/web_ui.py:trac/ticket/templates/ticket_box.html
trac/ticket/templates/ticket_change.html
>${_("diff")}</a>)However, crawlers can follow the diff links in
<link rel="prev" />
and<link rel="next" />
.