[wd_asp elements=’search’ ratio=’100%’ id=1]

Honeypot

23rd March 2014

Php - Email

php codehaven

Great code to stop spam

Put this in your sending file



And collect this

if( !isset($_POST['honeypot'])) { die("No Direct Access"); } // Make sure the form has actually been submitted

$spam = $_POST['honeypot']; // This is our Honeypot field

if($spam) { // If the Honeypot field has been filled in
die("No spamming allowed ");
} else