eye48 Wiki


NFTR: Not For The Robots

version 0.2

NFTR is a DokuWiki plugin which tries to prevent the indexing of user configured wiki pages and namespaces by search engines. For those pages the plugin adds a noindex tag for robots to HTTP- and HTML headers.

DokuWiki got a built-in method to hide pages. Those pages have a 'noindex' in their metadata and they are hidden in feeds and search results but this behaviour is not inherited to sub pages or to whole namespaces.

Not For The Robots provides the possibility to show pages to the user (feeds, search results) but provide metadata to prevent the indexing of pages and namespaces (including all sub pages) by search engines.

This does not mean that this content is not indexed by any search engines, spiders and robots could ignore all the information. But in generally, their spiders respect it (Google, Yahoo, … won't index your content if you ask not to do).

If you use your DokuWiki with mod_rewrite and nice URLs, you probably don't need this plugin, you could use robots.txt instead.

Update: NFTR has a Git repository now.

Features

  • in the HTML header the plugin sets the meta tag for robots to <meta name=“robots” content=“noindex,follow”/> and
  • additionally it sends X-Robots-Tag: noindex via HTTP header

Installation & Configuration

Using DokuWiki plugin manager

  • copy the archive URL: ZIP or TAR.GZ, both they contain the latest stable release (this way you can use the update method from the plugin manager later)
  • Go to the configuration page in your DokuWiki admin and configure the list of wiki pages and namespace which should be not indexed. Please use the colon (:) for page- and space names, and space to separate them, e.g. en:seo de:testarea

Without plugin manager

  • Download and unpack the ZIP- or TAR.GZ archive.
  • Rename folder to nftr
  • Copy the nftr folder to the plugin directory of your DokuWiki (should be located in <yourdokuwikidir>/lib/plugins).
  • configure the plugin at DokuWiki's configuration page

Bugs & Upcoming features

Please report bugs and ideas to the NFTR issue tracker at Github, thank you!

Web resources

License

Not For The Robots (NFTR) is released open-source under the GNU General Public License 2.0 (GPLv2) licence.

Changelog

  • 0.2: exchange licence b/c CC-BY-SA was incompatible with GPL
  • 0.1: initial release under CC-BY-SA

SiteInformation

Last modified: 2012-03-22 12:15 (external edit). Backlinks

SiteTools