| .gitignore | ||
| changelog.md | ||
| containerise-rules.min.txt | ||
| containerise-rules.txt | ||
| LICENSE | ||
| LICENSE.html | ||
| readme.md | ||
Firefox Containerise Rules
This repo stores my domain routing rules for the Containerise extension for Firefox. It works alongside Firefox Multi-Account Containers (MAC). MAC provides the containers and visuals. Containerise handles the routing with regex patterns.
The goal is simple. Stop cross-site tracking by forcing high-risk sites into their own containers. This isn’t because I visit these services often. It’s to contain the privacy leak when I land on them by accident or through a link I didn’t check.
These rules isolate Google, Meta, Amazon, Microsoft, financial services, social platforms and streaming services. I’ve included the major and smaller NZ banks as an example to organise your banking services, and kept them separate from popular fintech and payment services. The Personal container is empty on purpose. It gives you a neutral space you can use for general browsing, or for sites you don’t want pushed into one of the automatic containers.
How to use
- Install the Containerise extension for Firefox.
- Install Multi-Account Containers (MAC).
- In MAC, create each container you plan to use and customise the colour and icon.
Container names must match the names used in
containerise-rules.txt. - Open the Containerise options page.
- Copy the contents of
containerise-rules.txtinto the rules field. - Save.
- Leave MAC's "Always open in this container" lists empty so Containerise controls all routing.
- Use MAC manually when needed. Right click a link or tab and choose Open in Container to override the automatic routing.
My setup
- Containerise handles all automatic routing using regex patterns. It decides which domains open in which container, so you don’t need to maintain site lists manually.
- Firefox Multi-Account Containers manages the containers themselves, including the colours and icons. By leaving MAC’s site lists empty, you avoid clashes and let Containerise act as the single source of truth.
- MAC is still useful for manual overrides. If you want to force a link or tab into a specific container, right click and choose Open in Container.
Ideas for containers
- Personal
- Banking
- Finance
- Microsoft
- Meta
- Amazon
- Twitch
- Twitter/X
- Shopping
- Streaming
- AI Tools
- Social
Config file
The file containerise-rules.txt contains the full rule set.
Format:
@domain-regex , Container Name
Containerise strips comments and sorts the list automatically when you import it. This repo keeps the formatted version intact so it is human readable and easy to maintain.
Why use containers?
Firefox containers don’t fix the surveillance web, but they reduce the blast radius. One accidental visit to Facebook, YouTube, Reddit or any AWS-hosted service won’t leak into the rest of your browsing. Identity stays isolated. Cookies stay fenced in. Tracking systems have less to work with.
If you want to adapt this for your own setup, copy the file and swap domains as needed.
Licence
MIT. See LICENSE.