Does anyone know of a module to parse and/or validate an Apache .htaccess file? What I want to do is to automatically (with a cron job) block certain ip numbers, and the only way I can think of is to put a RewriteCond in the appropriate .htaccess file. Now, this isn't particularly difficult, of course, but if I managed to screw that file up, it would be bad...
(In case anyone is wondering, the cron job loops through the access log and generates a list of ip numbers that seem to be bulk downloading content from our site.)