Substituting text in the HTTP request body with mod_substitute


While doing a bit of research tonight I came across a reference to mod_substitute. This nifty module allows you to substitute text in the HTTP request body, which provides an easy way to do things similar to the following:

<Location /private>
AddOutputFilterByType SUBSTITUTE text/html
Substitute s/SECRET/XXXXX/ni
</Location>

I digs me some Apache!

This article was posted by Matty on 2008-02-13 00:05:00 -0400 -0400