Reliably detecting PhantomJS-based spam bots

I very much share your take on CAPTCHA. I’ll list what I have been able to detect so far, for my own detection script, with similar goals. It’s only partial, as they are many more headless browsers. Fairly safe to use exposed window properties to detect/assume those particular headless browser: window._phantom (or window.callPhantom) //phantomjs window.__phantomas … Read more

Prevent php web contact form spam

A simple trick is to create a honeypot field: html <!– within your existing form add this field –> <input type=”text” id=”website” name=”website”/> css /*in your css hide the field so real users cant fill it in*/ form #website{ display:none; } php //in your php ignore any submissions that inlcude this field if(!empty($_POST[‘website’])) die();

Blocking comment spam without using captcha [closed]

In my experience the currently most effective methods are honeypot input fields that are made invisible to users via CSS (best use several different methods, such as visibility:hidden, setting a size of 0 pixels, and absolute positioning far outside the browser window); if they’re filled anyway you can assume it’s a spambot. This blog describes … Read more

How do I prevent mails sent through PHP mail() from going to spam? [duplicate]

You must to add a needle headers: Sample code : $headers = “From: [email protected]\r\n”; $headers .= “Reply-To: [email protected]\r\n”; $headers .= “Return-Path: [email protected]\r\n”; $headers .= “CC: [email protected]\r\n”; $headers .= “BCC: [email protected]\r\n”; if ( mail($to,$subject,$message,$headers) ) { echo “The email has been sent!”; } else { echo “The email has failed!”; } ?>