
Contributed by Jasper Jongmans <jjongmans/at/aprogas.cx>:

First create a file that contains the list of "bad" user-agents (eg.
/usr/local/etc/sugarplum/badagents). The format of this file is one
grep(1)-like regexp per line.
Next insert the following text at the top of all your HTML files you want
to "protect":
 
<!-- #if UA file="sugarplum/badagents" -->
<!-- #redirect = "http://www.yoursite.tld/sugarplum/" -->
<!-- #endif -->

Note that the file specified in the #if directive's file attribute is
relative to the WN server root dir (e.g. /var/www).

It is important that you do not have any lines (also no blank lines)
above this.

The last step is telling WN to parse the HTML files. Add Attributes=parse
for each file record or Default-Attributes=parse in the directory record
of index.wn.

Make sure that the badagents file is readable by the user as which WN
server runs (try something like:
echo '[ -r /usr/local/etc/sugarplum/badagents ] && echo good || echo bad' | su -m wn).

$Id: INSTALL.WN 44 2003-02-01 22:56:20Z aqua $

