Cod PHP:function hackAttempt($input)
{
if (eregi("\r", $input) ||
eregi("\n", $input) ||
eregi("%0a", $input) ||
eregi("%0d", $input) ||
eregi("Content-Type:", $input) ||
eregi("bcc:", $input) ||
eregi("to:", $input) ||
eregi("cc:", $input))
{
return true;
}
else
{
return false;
}
}
Poti folosi codul de mai sus. Ca parametru, poti da field-urile din form:
Cod PHP:foreach($_POST as $name=>$value)
{
if (hackAttempt($value))
{
exit();
}
}







Răspunde cu citat