Elxis CMS Forum

Support => General => Topic started by: wbread on September 10, 2014, 08:47:09

Title: Stop spam bots
Post by: wbread on September 10, 2014, 08:47:09
I'm trying to block the registration of users from that domain but I get an error.
ml00.gmailmirror.com
previously there were no problems, I recorded domains in the block
Title: Re: Stop spam bots
Post by: datahell on September 10, 2014, 19:24:15
If you want to exclude email domains from registration add them comma separated in the Excluded domains option is Elxis configuration.
Example: something.co.uk,test.site.com,another.it

If you want to ban specific user agents (bots) you can add your own filters for Elxis Defender and enabled the Custom (C) filter. You can also enable the Agents (A) filter which contains a list of the known bad user agents.

Custom filter path: includes/libraries/elxis/defender/custom.php

Sample entry to block user agents containing the string "test":
array('inmatch', 'useragent', 'test', 'I dont like you!'),
Title: Re: Stop spam bots
Post by: wbread on September 12, 2014, 20:17:32
I know these options, and an error occurs when adding new sites
Title: Re: Stop spam bots
Post by: datahell on September 12, 2014, 20:41:40
If error occurs then you do it wrong.

For the defender filters -as they are listed in array format- you should make sure all entries has a comma (,) at the end except the last entry.

$x = array(
    array(....),
    array(....),
    array(....),
    array(....)
);