OSDN Git Service

BugTrack2/366 Output 'X-Robots-Tag: nofollow' header on nofollow page
authorumorigu <umorigu@gmail.com>
Fri, 5 Feb 2016 21:36:19 +0000 (06:36 +0900)
committerumorigu <umorigu@gmail.com>
Fri, 5 Feb 2016 22:21:17 +0000 (07:21 +0900)
commit6c30f54868803dfa23c9e803215c05562f8e9aa0
tree9c740963fd433692188448bb87c6d60c7bd22347
parent701dbd4da26cf6a4a0fb796beaae559032e98900
BugTrack2/366 Output 'X-Robots-Tag: nofollow' header on nofollow page

Internet search engines should not index PukiWiki default contents
(i.e. PukiWiki plugin manuals) and non-'read' pluing output (ie: Edit).
So we need to send "nofollow, noindex" marks to search engines.

Previously PukiWiki outputs "robots: nofollow,noindex" meta info
by HTML meta header contained in the default skin file.
Therefore if administrators customize skin file or use other skin,
they failed to tell "nofollow,noindex" to search engines.

In order to resolve this issue, PukiWiki engine now output
HTTP header 'X-Robots-Tag: nofollow,noindex' if the content should
not be cached.

We can tell right index policy to search engine crawlers
regardless of skin file.
lib/html.php