WordPress.org

Support

Support » Plugins and Hacks » [Resolved] howto block def. domains?

[Resolved] howto block def. domains?

  • from the first day on my new WordPress site stay-free recieves tons of emails from the hotmail domain. The names are all cryptic and seem to be produced by a spam-mail-generator,

    Is possible to filter these addresses e.g. “hotmail” or “hotmail.com”?

    http://wordpress.org/plugins/antispam-bee/

Viewing 1 replies (of 1 total)
  • Hi, yes this is easily possible with the RegEx capability:

    First, you edit antispam_bee.php as described here (search for ‘$patterns’).

    For your case, you’ll want to add something like:

    2 => array(
        'host' => '^(www\.)?hotmail\.com$'
    )

    Make sure you add a comma at the end bracket of pattern 1!

    In the end it would look like this:

    /* Regexp */
    $patterns = array(
    	0 => array(
    		'host'	=> '^(www\.)?\d+\w+\.com$',
    		'body'	=> '^\w+\s\d+$',
    		'email'	=> '@gmail.com$'
    	),
    	1 => array(
    		'body'	=> '\<\!.+?mfunc.+?\>'
    	),
    	2 => array(
    		'host' => '^(www\.)?hotmail\.com$'
    	)
    );

    Edit: Of course you have to make sure the Regular Expression (Reguläre Ausdrücke) option is checked in the Antispam Bee settings.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] howto block def. domains?’ is closed to new replies.