Revision: 32418
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 24, 2010 01:45 by flatearthcomms
Initial Code
foreach( $_POST as $value ){ if( stripos($value,'Content-Type:') !== FALSE ){ mail('[email protected]','Spammer Bot Attempt',$_SERVER['REMOTE_ADDR']); exit("{$_SERVER['REMOTE_ADDR']} Has been Recorded"); } }
Initial URL
http://www.nyphp.org/PHundamentals/8_Preventing-Email-Header-Injection
Initial Description
Stop a spam email form header injection attack - ie stop spammers from hijacking a web form to send junk mail
Initial Title
Anti spam web email form
Initial Tags
Initial Language
PHP