Return to Snippet

Revision: 32418
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

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