Table of Contents
AdultContent Plugin
Compatible with DokuWiki
Hrun, Detritus, Elenor of Tsort
This simple plugin will check your dokuwiki page before being saved whether it contains given keywords like "sex", "porn", "orgy", etc and puts the "adult" flag in metadata.

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
I just have a few pages which has medical information about sexually transmitted disease, but Google AdSense does not like them. so I made this plugin.
External requirement: This plugin does nothing except tagging a internal metadata. To have an effect, your template or other plugin must utilize it.
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Examples/Usage
This simple plugin will check your dokuwiki page before being saved whether it contains given keywords like “sex”, “porn”, “orgy”, etc and puts the “adult” flag in metadata.
You can retrieve this flag in your template and might control your contents like Google AdSense.
<?php if (!p_get_metadata($ID,"adult")) {?> ... Your Google AdSense code... ... <?php } ?>
See the plugin in action here (Korean).
Configuration and Settings
You can set your keywords in configuration (regex style).