Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    Eventhough I'm using the captcha I was still getting spam in my comments section.

    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 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
    <title>403 Forbidden</title>
    <p>You don't have permission to directly access this page!</p>


    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


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


    <script language="JavaScript">
    document.write("<input class=\"submit\" name=\"submit\" type=\"submit\" tabindex=\"5\" value=\"<?php echo plog_tr('Post Comment'); ?>\" />");
    • CommentAuthornikeair01
    • CommentTimeNov 24th 2010
    There are so many ways to market your affiliate programs, especially online and new techniques are around every corner. The biggest decision you will have to make is which programs are for you and what is the best way for you to promote them.<a href=""> Bottes Ugg Cheap En Cafe Couleur </a>
    <a href=""> Bottes Ugg Discount En Noir </a>
    <a href=""> Bottes Ugg Economie En Gris </a>
    <a href=""> Bottes Ugg Francais En Beige</a>
    <a href=""> Bottes Ugg Jolie En Couleur Brun </a>
    <a href=""> Bottes Ugg Pas Imitation En Noir</a>
    <a href=""> Ugg France Bottes En Beige</a>
    <a href=""> 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.
    If I look at the amount of spam on this forum I reckon it can use some extra precautions as well ;)

    ontopic: haven't had a single spam message since I've implemented the above. (against 5 a day)
    • CommentAuthorecspan
    • CommentTimeJul 12th 2011
    Great help, thank you! This should be added to future versions of the code.