On Mastodon, you can set your timeline to automatically hide or block posts featuring certain words, phrases, hashtags or emoji. 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. No one will know you have filtered their posts.
To add a filter:
- Log in through your server’s website or the web app
- Go to ⚙️ Preferences > Filters (On the mobile website click ⚙️ and then ☰ and then Filters, on the desktop website click ⚙️ Preferences and then the Filters link 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, phrases or emoji 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, alt text descriptions 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.
How do I filter posts that contain a particular link?
Add a filter for part of the text in the link (such as the link’s domain name), then make sure you have UN-ticked the box marked Whole word, then save the filter. This will filter anything that contains that text including links.