Edgewall Software
Modify

Opened 14 years ago

Closed 11 years ago

#9999 closed enhancement (worksforme)

Disallow Trac project contents indexing by robots

Reported by: Michel Jouvin <jouvin@…> Owned by:
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords: robots
Cc: Thijs Triemstra Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi,

I've been trying to build a server configuration where indexing of Trac project contents by robots would be disabled by default, with an exception for some projects (all projects being served by the same Trac instance).

It turns out to be difficult to do using the traditional robots.txt approach, as this file can contain only disallow clause. This means you have to update the file everytime you add a new project.

Another approach would be to add a meta tag to each page generated by Trac. This would allow to implement easily the use case described here… but requires Trac to do it!

My suggestion would be to add an option in trac.ini allowing to disable indexing by robots and resulting in the meta tag being added by Trac to each page it generates. Then it would be easy with a config file shared by every project to implement a default and override it in the context of some specific projects.

Michel

Attachments (0)

Change History (4)

comment:1 by Thijs Triemstra, 14 years ago

Cc: Thijs Triemstra added

comment:2 by Remy Blank, 14 years ago

Can't you do that with a site.html template?

comment:3 by Michel Jouvin <jouvin@…>, 14 years ago

I must admit that I forgot about this possibility… Probably a little bit more difficult to configure than a real option but should be enough. I'll check and if it works, it may be worth documenting…

Michel

comment:4 by Peter Suter, 11 years ago

Keywords: robots added
Milestone: next-major-releases
Resolution: worksforme
Status: newclosed

Closed as worksforme assuming the suggestion of comment:2 worked.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.