WordPress.org

Plugin Directory

Changeset 491786


Ignore:
Timestamp:
01/18/12 18:52:39 (2 years ago)
Author:
ramon fincken
Message:

New version

Location:
antispam-for-all-fields
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • antispam-for-all-fields/trunk/antispam-for-all-fields.php

    r488184 r491786  
    55 Description: Class and functions 
    66 Author: Ramon Fincken 
    7  Version: 0.7.7 
     7 Version: 0.7.8 
    88 Author URI: http://www.mijnpress.nl 
    99 */ 
     
    486486        } 
    487487 
     488        // Lots of (more then 25%) dots in mail and free-email? 
     489        $temp = explode('@',$email); 
     490        $domain = strtolower($temp[1]); 
     491        $split1len = strlen($temp[0]); 
     492        $dotlen = substr_count($temp[0],'.'); 
     493        if(intval($dotlen/($split1len/100)) > 25) 
     494        { 
     495            if(in_array($domain,array('google.com','gmail.com','hotmail.com','live.com','mail.ru'))) 
     496            { 
     497                $this->update_stats('spammed'); 
     498                return 'spam';               
     499            } 
     500        }        
     501         
    488502        if (!empty ($author)) { 
    489503            $count = $this->check_count('comment_author', $author); 
  • antispam-for-all-fields/trunk/readme.txt

    r488184 r491786  
    55Requires at least: 2.0.2 
    66Tested up to: 3.3.1 
    7 Stable tag: 0.7.7 
     7Stable tag: 0.7.8 
    88 
    99Plugin to reject spam. Port from same author from http://www.phpbbantispam.com 
     
    4040 
    4141== Changelog == 
     42= 0.7.8 = 
     43Added:  Lots of (more then 25%) dots in mail and free-email 
     44 
    4245= 0.7.7 = 
    4346Added: Trackback and pingback stage 1, based on Simple trackback validation with topsy blocker Stage 1  
Note: See TracChangeset for help on using the changeset viewer.