Opened 14 years ago
Closed 11 years ago
#9999 closed enhancement (worksforme)
Disallow Trac project contents indexing by robots
Reported by: | 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 , 14 years ago
Cc: | added |
---|
comment:2 by , 14 years ago
comment:3 by , 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 , 11 years ago
Keywords: | robots added |
---|---|
Milestone: | next-major-releases |
Resolution: | → worksforme |
Status: | new → closed |
Closed as worksforme assuming the suggestion of comment:2 worked.
Can't you do that with a
site.html
template?