Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 14 years ago

#478 closed defect (fixed)

Disallow web robots indexing of old Wiki info

Reported by: daniel Owned by: daniel
Priority: normal Milestone: 0.8
Component: wiki system Version: 0.7
Severity: minor Keywords: noindex
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac should send html headers to instruct searchbots to not index old versions of pages or diffs.

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

Attachments (0)

Change History (9)

comment:1 by anonymous, 20 years ago

Summary: Disallow web robots to old Wiki infoDisallow web robots indexing of old Wiki info

comment:4 by daniel, 20 years ago

Owner: changed from Jonas Borgström to daniel
Status: newassigned

comment:5 by daniel, 20 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [717].

comment:6 by sean.dawson@…, 19 years ago

Resolution: fixed
Status: closedreopened

Reopening; most recent version of source:trunk/trac/Wiki.py seems to have this backwards:

        if version:
            self.add_link('alternate',
                '?version=%s&amp;format=txt' % version, 'Plain Text',
                'text/plain')
        else:
            self.add_link('alternate', '?format=txt', 'Plain Text',
                'text/plain')
            # Ask web spiders to not index old versions
            req.hdf['html.norobots'] = 1

This block will set the html.norobots flag when version isn't specified (most recent page) — this isn't what you want I think.

Moving the html.robots into the first if block will fix this.

comment:7 by anonymous, 19 years ago

Resolution: fixed
Status: reopenedclosed

Good catch. This regression has been fixed in [1313]. (Please file issues like this as new tickets in the future, though.)

comment:8 by Christopher Lenz, 19 years ago

That anonymous dude was me BTW :-P

comment:9 by Christian Boos, 14 years ago

Keywords: noindex added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.