Antispam Bee
[resolved] howto block def. domains? (2 posts)

  1. wlende
    Posted 2 years ago #

    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"?


  2. Simon
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Antispam Bee
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic