On Mastodon, you can set your timeline to automatically hide or block posts featuring certain words, phrases, or hashtags. You can choose to block them completely, or hide them behind a warning that you can open manually.
This isn’t just about offensive posts, it can be filtering for any reason at all. Some people use filters to hide Wordle posts for example. Your filters are private, and they will apply in the apps as well as on the website.
To add a filter:
- Log in through your server’s website
- Go to ⚙️ Preferences > Filters (On the mobile website you have to click ⚙️ and then ☰ and then Filters, on the computer desktop website the Filters link will be on the left side of the Preferences page.)
- Click the Add new filter button
- Choose the settings you want, then click Save new filter
Some tips which might help with creating filters:
- The Title section at the start of a filter is just a name you want to give the filter so you remember what it does. It isn’t the actual words the filter uses.
- You can add the filtered words and phrases in the Keywords section at the bottom. They aren’t case sensitive.
- The filter will look for these keywords in entire posts, including the actual content, hashtags, account addresses or web addresses mentioned in posts.
- Filters work retrospectively, so posts made before the filter was created will also be filtered.
- You can add more words and phrases to the same filter by clicking the + Add keyword link at the bottom of the page. The filter will be triggered if any of the words or phrases are present.
- You don’t need to include # on filtered hashtags, these will automatically be blocked if they contain a filter’s keyword.
- You can make filters temporary by setting the Expire after section. By default this is set to “never” which means the filter is permanent.
- The Filter contexts section lets you apply the filter to specific parts of Mastodon. If you want it applied everywhere, tick all the boxes.
- If you have the Whole word option on the filter ticked, it means the filter only applies to posts containing exactly that word. If you UN-tick this option, the filter will also apply to posts that have that word with other letters or numbers next to it without spaces, for example within another word, or a different form of the same word.
- You can edit or delete filters at any time by going back to the Filters section in ⚙️ Preferences.