This script is designed to run as a php auto-prepend, like so (in .htaccess)..

php_value auto_prepend_file "/real/full/server/path/to/anti-hammer.php"