processone / ejabberd-contrib

Growing and curated ejabberd contributions repository - PR or ask to join !
http://ejabberd.im
250 stars 140 forks source link

mod_pottymouth how to filter out links? #294

Closed rocksystem closed 3 years ago

rocksystem commented 4 years ago

Hello, I have difficulty filtering spam links like https://myspamlink.com/sompath. When I add myspamlink or https://myspamlink.com/sompath into blacklist_en.txt neither got replaced with ****.

badlop commented 4 years ago

Remember to restart ejabberd, or at least restart that module after you edit the blacklist file.

From what I see, this module compares words, not parts of words. For example, I put in the blacklist file:

myspamlink

and this is the result:

So, it is required to add the exact word to the blacklist:

https://myspamlink.com/sompath

Then, if the spammer uses a slightly different URL, or appends some character different that a blackspace, then it isn't filtered.