[TYPO3-dev] firewall

Dmitry Dulepov dmitry at typo3.org
Tue Jan 2 14:03:09 CET 2007


Hi!

Mike Morris wrote:
> couold you post the script.
> Maybe its useful for others here - lie me!

Get it here:
http://typo3bloke.net/fileadmin/misc/auto_ban.php.gz

It is really simple. You need to adjust two lines, both with paths (one 
to php command line, another - to your .htaccess). Do not forget to 
"chmod u+x auto_ban.php" under root.

To use add the rule to your mod_security.conf:
------------------------
SecFilterSelective POST_PAYLOAD
	"drugs|sex|viagra" "exec:/path/to/auto_ban.php"
------------------------
All should be in one line. Read mod_security docs for more details about 
rules: it is really flexible and powerful!

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)




More information about the TYPO3-dev mailing list