WordPress.org

Ready to get started?Download WordPress

Forums

Less spam. (2 posts)

  1. milpoer
    Member
    Posted 9 years ago #

    Hello.

    I have made the following addition to my b2comments.*.php file.

    /* Check for specific words from a spam array */
    $author_lower_string = strtolower($comment_author);
    $words_array = array("sex","viagra","texas","holdem","poker","online");
    for($i=0;$i<sizeof ($words_array);$i++){
      if(eregi($words_array[$i],$author_lower_string)){
       $ok=false;
      }

    }
    /* End word check */

    And I want to share it with others, so here you are.. Hope you can use it.

    Later on I think I will submit a patch for wordpress, possible with a menu-point in the administration module, where you can submit words without entering the code. But more to come I think.

    http://milpoer.dk/blog/

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    http://www.tamba2.org.uk/wordpress/spam

    Lots of extra stuff too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.