Archive for February 2005

2005-02-20 – A way to stop link spammers on blogs (code sample)

The code sample below is quite trivial. It is PHP. Just copy and paste into the page which handles the submission validation (probably something like contact.php) and tweak the variable names as you see fit. // Anti-spam code if ((($number + $othernumber) != $sum)) { echo \”<font color=red>Please learn basic maths!!</font><br>\”; $send = \”no\”; //…

Read More