Jump to content

pregmatch and bot blocking help


dflow

Recommended Posts

i have this to vlock bots out

why is the pregmatch part receiving inserts of "http" ????
[cdoe] 
  if (empty($_POST['Main']) && !empty($_POST['CustomerEmail']) && !preg_match("/http/i","$RequestText")) {
    mail($to, $subject, $message, $headers); 

$url_success = "confirmation.php";
 echo("<meta http-equiv = refresh content=0;url=".$url_success.">");
   }
  elseif (empty($email)) {
    exit();
  }
  else {
  

exit();



  }

Link to comment
https://forums.phpfreaks.com/topic/230510-pregmatch-and-bot-blocking-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.