Spam Prevention & Protection
Last updated
Last updated
Whilst Telegram is a great platform for building private and public communities there is of course marketing, scam and phishing attempts from bad actors. The Modr8 engine is equipped with many features to combat these issues including a dedicated Spam Prevention Module.
To access the module complete the following steps. Once on the page, the following sections will explain in detail what each of the settings are for and what changes to configuration you may want to make.
Select "Manage"
on your bot profile from the homepage
Scroll to your chat profile
Select "Settings"
on your chat profile
Select "Edit"
on the "Spam Prevention"
card
You will then be presented with the following card sections and can set up your configuration.
When a new user joins your chat, often their first message may contain a spam link. This is especially true for automated strategies where someone has programmed a bot user to spam marketing and spam messages.
Scroll to the "New User Spam Capture"
section
To block web links in first messages enable the "Contains A Web Link"
switch.
To block a users first message being a forwarded message enable the "Is A Forwarded Message"
switch
To block mentioning another channel / group or user in their first message enable "Mentions Channel/User"
switch
To block a users first message from being some form of media such as polls, animations and videos you should enable "Uses Media"
and then select items from the "Remove Media List"
The bot will delete the above messages, but also can execute further actions. Select what you would like to happen using the "Execute Action"
drop down. This could be do nothing (just delete), mute the user, kicks the user or ban the user. If using mute, you can specify the duration.
When new users join your chat, you may wish to restrict the actions they can perform in your chat. Some communities do not want new users to be able to post photos / videos and voice messages for a defined period of time. This type of probationary period can be useful to stop spammers and scammer from sending media right away and they may move to other chats to find easier targets.
Scroll to "New User Restrictions"
section
Enable the module by turning on the "Apply Restrictions"
switch
Select the type of messages you would like to be restricted by selecting fro the "Message Types"
drop down list.
Toggle whether you wish to stop new users also being able to invite other users to the chat. with the "User Invites"
option. This can stop raids and spam inviting bots.
Select how long to restrict users for using the "Restricted For"
drop downs. Typically we recommend anywhere from 1 hour up to 24 hours works good.
We utilise a known bad actor/user list which is crowd sourced and maintained by SpamWatch. This list contains hundreds of thousands of peer reviewed spammers who have been issuing bad content to other communities. When this setting is turned on, users who match the list are automatically banned by Modr8.
Scroll to the "Federated Spam Protection"
section.
Toggle the "Enable SpamWatch List" option to turn this setting on.
Sending keyboards with bots to the chat used to be a way spammers would provide links to websites and custom commands to collect user data. It's not really so popular anymore but we still keep the option here for good measure in case it becomes a method of attack again.
Scroll down to the "Button Links & Keyboards"
card section
Toggle the "Remove Buttons/Keyboards"
toggle to enable the protection
Toggle whether you wish to issue a warning using the warning system when the bot identifies users who are spamming in this way. If your general settings have an outcome to exceeding the warning limit then that action will be executed once breached.
You may want to stop users spamming the same message over and over. We have noticed that some marketing bots tend to do this over a few hours ot keep their message slowly feeding into your chat. We also see it as an attempt to flood the same message multiple times within seconds to gain attention. This setting will delete and warn users if detected.
Scroll to the "Duplicate Message Check"
card section
Toggle to enable the "Remove Duplicates"
module
Select whether you wish to "Issue Warning"
when a duplicate is detected. This will follow your warning system settings and may cause a kick, ban or mute if breaching your rules.
Specify "Duplicate if sent within"
time period using the number input and drop-down.
The simplest of spam checks is stopping floods of messages being thrown into your chat. This could be the same message or a rotation of messages. This module records the last time a user sent a message against the time they sent their new message. If they breach your specified sensitivity then the message is deleted.
Scroll to the "Message Flood Control" card section
Toggle to enable the "Remove Flood Messages" module
Select whether you wish to "Issue Warning"
when a flood is detected. This will follow your warning system settings and may cause a kick, ban or mute if breaching your rules.
Set a "Flood Detection Sensitivity"
this is the time in seconds between previous and current messages. Typically 1 or 2 seconds is enough.
If you have ideas for further spam detection modules please let us know!