Anti External Links
About the module
This module will sanction those users who send some type of link in their message.
We recommend using this module if you manage a community.
All Discord links will bypass this module.
Getting Started
Before proceeding with this article, you must take into account a series of elements that can influence when you are going to carry out any action described on this page:
- Filo requires the following advanced permissions:
VIEW_CHANNEL,SEND_MESSAGES,EMBED_LINKSandMANAGE_MESSAGES. - You need
ADMINISTRATORpermission to perform most of the actions in this article.
Module exceptions
This module has exceptions, which means that it won't work if some of the requirements mentioned below are met:
- If Filo doesn't have
VIEW_CHANNEL,SEND_MESSAGES,EMBED_LINKSandMANAGE_MESSAGESpermissions. ^1^ - If the user has the
ADMINISTRATORpermission. ^2^ - If the user has the
MANAGE_GUILDpermission. ^2^ - If the user has the
EVADE_SANCTIONSpermission. ^2^ - If the position of the Filo's roles are lower than the user roles. ^2^
- If the position of the Filo's roles are equal to the user roles. ^2^
^1^ If this requirement is met, the module settings will be reset.
^2^ If this or some of the requirements are met, the module won't work.
Steps to enable the module
Step 1: Enable the module
To enable the module you must execute the following command: /anti-external-links enable.
Example: /anti-external-links enable.
This module can be supplemented with the Auto Moderation module.
Steps to disable the module
Step 1: Disable the module
To disable the module you must execute the following command: /anti-external-links disable.
Example: /anti-external-links disable.
Steps to add a URL to the allowed list
Steps to add a subdomain to the allowed list
Step 1: Add a subdomain to the allowed list
To add a subdomain to the allowed list you must execute the following command: /anti-external-links link action:Add link:<URL>.
Don't include <> when you're running the command.
It is mandatory that the URL has the HTTPS protocol enabled, otherwise it cannot be added to the allowed list.
Example: /anti-external-links link action:Add link:https://wiki.filobot.xyz.
You can allow all subdomains of a domain by replacing the subdomain with an asterisk. Example: https://*.filobot.xyz.
You can allow all links from a domain and its subdomains by replacing the subdomain and the path with an asterisk as described in this article. Example: https://.filobot.xyz/.
Steps to add a domain to the allowed list
Step 1: Add a domain to the allowed list
To add a domain to the allowed list you must execute the following command: /anti-external-links link action:Add link:<URL>.
Don't include <> when you're running the command.
It is mandatory that the URL has the HTTPS protocol enabled, otherwise it cannot be added to the allowed list.
Example: /anti-external-links link action:Add link:https://filobot.xyz.
You can allow all links from a domain and its subdomains by replacing the subdomain and the path with an asterisk as described in this article. Example: https://.filobot.xyz/.
Steps to add a path to the allowed list
Step 1: Add a path to the allowed list
To add a path to the allowed list you must execute the following command: /anti-external-links link action:Add link:<URL>.
Don't include <> when you're running the command.
It is mandatory that the URL has the HTTPS protocol enabled, otherwise it cannot be added to the allowed list.
Example: /anti-external-links link action:Add link:https://wiki.filobot.xyz/en/home.
You can allow all paths of a domain by replacing the path with an asterisk. Example: https://filobot.xyz/*.
You can allow all links from a domain and its subdomains by replacing the subdomain and the path with an asterisk as described in this article. Example: https://.filobot.xyz/.
Steps to remove a URL from the allowed list
Step 1: Remove a URL from the allowed list
To remove a url from the allowed list you must execute the following command: /anti-external-links link action:Remove link:<URL>.
Don't include <> when you're running the command.
It is mandatory that the URL has the HTTPS protocol enabled, otherwise it cannot be added to the allowed list.
Example: /anti-external-links link action:Remove link:https://filobot.xyz.
Steps to enable bypassing of Filo links
Step 1: Enable bypassing of Filo links
To enable bypassing of filo links you must execute the following command: /anti-external-links filo action:Enable.
Example: /anti-external-links filo action:Enable.
Steps to disable bypassing of Filo links
Step 1: Disable bypassing of Filo links
To disable bypassing of filo links you must execute the following command: /anti-external-links filo action:Disable.
Example: /anti-external-links filo action:Disable.
Steps to enable bypassing of Discord links
Step 1: Enable bypassing of Discord links
To enable bypassing of discord links you must execute the following command: /anti-external-links discord action:Enable.
Example: /anti-external-links discord action:Enable.
Steps to disable bypassing of Discord links
Step 1: Disable bypassing of Discord links
To disable bypassing of discord links you must execute the following command: /anti-external-links discord action:Disable.
Example: /anti-external-links discord action:Disable.
Steps to set a sanction
Step 1: Set a sanction
To set a sanction you must execute the following command: /anti-external-links action action:<Action>.
Don't include <> when you're running the command.
You can see a full list of actions that Filo supports by clicking here.
Example: /anti-external-links action action:Temporarily mute the user time:1h.
Steps to add a channel to the allowed list
Step 1: Add a channel to the allowed list
To add a channel to the allowed list you must execute the following command: /anti-external-links channel action:Add channel:<#Channel/Channel ID>.
Don't include <> when you're running the command.
Example: /anti-external-links channel action:Add channel:#spam-allowed.
If you add a channel to the allow list, this module will not work on that channel.
Steps to remove a channel to the allowed list
Step 1: Remove a channel to the allowed list
To remove a channel to the allowed list you must execute the following command: /anti-external-links channel action:Remove channel:<#Channel/Channel ID>.
Don't include <> when you're running the command.
Example: /anti-external-links channel action:Remove channel:#general.
If you remove a channel from the allowed list, this module will work on that channel.
Steps to add a role to the allowed list
Step 1: Add a role to the allowed list
To add a role to the allowed list you must execute the following command: /anti-external-links role action:Add role:<@Role/Role ID>.
Don't include <> when you're running the command.
Example: /anti-external-links role action:Add role:@Moderators.
If you add a role to the allowed list, anyone who has this role will be exempt from the operation of this module.
Steps to remove a role to the allowed list
Step 1: Remove a role to the allowed list
To remove a role to the allowed list you must execute the following command: /anti-external-links role action:Remove role:<@Role/Role ID>.
Don't include <> when you're running the command.
Example: /anti-external-links role action:Remove role:@Moderators.
If you remove a role from the allowed list, anyone who has this role will no longer be exempt from the operation of this module.
Steps to reset module settings
Step 1: Reset the module settings
To reset the module settings you must execute the following command: /anti-external-links reset.
Example: /anti-external-links reset.
You'll be forced to confirm the action you are about to take. Once you have confirmed the action, you won't be able to recover the previous data.