Skip to content
This repository was archived by the owner on Sep 19, 2020. It is now read-only.

How to block 1st party scripts everywhere by default

Raymond Hill edited this page Nov 23, 2017 · 15 revisions

By default, out of the box, uMatrix blocks all 3rd-party script, but allows 1st-party scripts to run on any web site.

If you wish, you can set up uMatrix to block all scripts by default everywhere with only a few clicks.

By default, 1st-party scripts are not blocked:

a

Select the global scope:

a

Create a block rule for all scripts (equivalent to * * script block in picture below):

a

If you want the approach of blocking all scripts for good, you will want to persist the new block rule:

a

At this point, all scripts, including 1st-party ones, are blocked everywhere. On the site where you created the rule:

a

And all other sites:

a

And from now on you will have to allow scripts manually as you see fit, locally or globally (equivalent to theverge.com theverge.com script allow in picture below):

a

Reminder

All rules are temporary by default in uMatrix. As you build your ruleset from the ground up for the sites you visit regularly, you will find yourself using more and more temporary rules (if needed at all) for those other sites you visit once in a while or even just once. Hence temporary rules are really the more natural approach in the long term.

Clone this wiki locally