How the DenyBody options is used, is described in the manual page (just updated the online manual pages).
Use it inside for a (virtual) host section:
VirtualHost {
...
DenyBody = <regular expression>
}
If the request body matches the regular expression, the request is denied and a 403 will be send to the client. What regular expression you should use, depends on the vulnerablility of your website. The following example will block requests which inject javascript on a forum or guestbook:
DenyBody = ^.*%3Cscript.*%3C%2Fscript%3E.*$