Plogger Support Forum - Aditional comment SPAM protections (next to captcha) Thu, 28 Mar 2024 11:45:10 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 Aditional comment SPAM protections (next to captcha) http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13494#Comment_13494 http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13494#Comment_13494 Tue, 23 Nov 2010 06:50:23 +0000 floriske.nl
To get rid of most of this I added a few extra pieces of code I also use in e-mail scripts etc.

First of all the plogger/plog-comment.php file:

at the start of the source code (after the <?php of course) add:

//check if the data comes form the comment form's POST request
if(isset($_POST['submit']))
//if so, start the comment script
{



At the end of the source code (just before the ?>) add:

}
//end of the comment script

//if the data does not come form the comment form's POST request
else
{
die("<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to directly access this page!</p>
</body></html>
");
}

?>


This does an extra check to see if the posted data is actually coming from the comment form instead of direct injection by a spam bot.

A second extra precaution would be to hide the comment form's submit button in a javacript document.write.

A lot of spam bots use text based browsing and can't handle javascript, so if we write the submit button into a piece of javacript code they can't submit the form. The downside to this if people use a text based browser (a bit old fashioned imho) they can't submit a comment either.

In your theme's comment.php file

Replace


<p><input class="submit" name="submit" type="submit" tabindex="5" value="<?php echo plog_tr('Post Comment'); ?>" /></p>


by

<p>
<script language="JavaScript">
document.write("<input class=\"submit\" name=\"submit\" type=\"submit\" tabindex=\"5\" value=\"<?php echo plog_tr('Post Comment'); ?>\" />");
</script>
</p>
]]>
Aditional comment SPAM protections (next to captcha) http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13508#Comment_13508 http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13508#Comment_13508 Wed, 24 Nov 2010 21:51:02 +0000 nikeair01 <a href="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-discount-en-noir-p-501.html"> Bottes Ugg Discount En Noir </a>
<a href="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-economie-en-gris-p-503.html"> Bottes Ugg Economie En Gris </a>
<a href="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-francais-en-beige-p-504.html"> Bottes Ugg Francais En Beige</a>
<a href="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-jolie-en-couleur-brun-p-507.html"> Bottes Ugg Jolie En Couleur Brun </a>
<a href="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-pas-imitation-en-noir-p-508.html"> Bottes Ugg Pas Imitation En Noir</a>
<a href="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-ugg-france-bottes-en--beige-p-500.html"> Ugg France Bottes En Beige</a>
<a href="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-cardy-authentique-bottes-ugg-en-bleu-p-494.html"> Authentique Bottes Ugg En Bleu</a>
Choosing the right affiliate programs takes time and research. You don't want to just jump in and promote any old program that comes along you want to find ones that will make your job easy and fun. Look for businesses that have been around for a while that have a solid background and good rankings.]]>
Aditional comment SPAM protections (next to captcha) http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13514#Comment_13514 http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13514#Comment_13514 Fri, 26 Nov 2010 07:33:46 +0000 floriske.nl
ontopic: haven't had a single spam message since I've implemented the above. (against 5 a day)]]>
Aditional comment SPAM protections (next to captcha) http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13846#Comment_13846 http://www.plogger.org/forum/comments.php?DiscussionID=3446&Focus=13846#Comment_13846 Tue, 12 Jul 2011 11:27:51 +0000 ecspan