Not signed in (Sign In)

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

  1.  
    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(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>
    • 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="http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-cheap-en-cafe-couleur-p-502.html"> Bottes Ugg Cheap En Cafe Couleur </a>
    <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.
  2.  
    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.