This is the Bad Behavior with MySQL 2.2 cookbook recipe for PmWiki ------------------------------------------------------------------ Version: 2.2 February 14, 2013 See http://bad-behavior.ioerror.us/ for more information about Bad Behavior. To obtain a httpBL key, visit: http://www.projecthoneypot.org/httpbl.php This recipe will add the protection of Bad Behavior to your PmWiki. It presently requires MySQL for logging, but it may be ported to SQLite. (this I have been advised, is probably not going to work though) INSTALLING ---------- 1. You will need to create a database, user, and password in MySQL. This typically looks like: create database bb2_pmwiki; grant all on bb2_pmwiki.* to user@localhost identified by 'password'; 2. From the unzipped/untarred folder bad-behavior.2.2-pmwiki copy the bad-behavior/bad-behavior folder into your PmWiki folder. 3. From the unzipped/untarred folder bad-behavior.2.2-pmwiki copy the file cookbook/bad-behavior-mysql.php into your PmWiki folder's cookbook folder. 4. NEW INSTALLATIONS ONLY should copy the file bad-behavior.config.php.sample from the unzipped/untarred folder bad-behavior.2.2-pmwiki into your PmWiki local folder as bad-behavior.config.php . 5. In your PmWiki folder, edit local/bad-behavior.config.php and set the correct values for: $bb2host, $bb2user, $bb2pass, $bb2name If you have an httpBL key, set it as: $bb2httpbl_key 6. In your local/config.php file, add the following line: include_once('cookbook/bad-behavior-mysql.php'); At this point, your PmWiki should be protected by Bad Behavior. Additional info: * Bad-Behavior 2.2.3+ whitelist support is supported by Bad Behavior for PmWiki. Whitelist by creating or editing bad-behavior/whitelist.ini as needed. See bad-behavior/whitelist.sample.ini for an example. No promise of support, but help may be sought on the mailing list: http://lists.gothamcode.com/listinfo/gothamcode