Page 1 of 1
Blocking spam based on domain
Posted: Wed Aug 09, 2017 11:11 am
by schimanke
Hi everybody,
is it possible to block spam comments based on their domain, for example mail.ru? I have already tried
but to no avail. Any ideas?
Re: Blocking spam based on domain
Posted: Fri Aug 11, 2017 8:16 pm
by yellowled
schimanke wrote:is it possible to block spam comments based on their domain, for example mail.ru? I have already tried
but to no avail.
How did you “try” that?
You should be able to add regular expressions to the word filter for email addresses in the configuration of the default spamblock plugin. (Which I never tried myself, but it says so.) You also need to activate the word filter by setting it to either moderate or block. I assume that's what you tried, but it's not working? Or are you using this with a different plugin and/or in a different config option?
YL
Re: Blocking spam based on domain
Posted: Fri Aug 11, 2017 9:59 pm
by thh
schimanke wrote:I have already tried
That's no regular expression (at least none that makes any sense).
".+\@mail\.ru" should be (a little) better.
Re: Blocking spam based on domain
Posted: Sat Aug 12, 2017 8:51 am
by schimanke
@YL: Yes, I tried exactly what you thought in the default spamblock plugin but it didn't work. However, the solution provided by thh obviously worked. I will monitor this.
@thh: Thank you very much! That seemed to do the trick.
![Smile :-)](./images/smilies/icon_smile.gif)