Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Per site permissions: an example

Raymond Hill edited this page May 21, 2014 · 2 revisions

[Screenshots in this article are quite outdated. I need to update them.]

HTTP Switchboard supports per-web site permissions. Here is a typical case example to illustrate why per-site permissions are useful, and how to use per-site permissions.

Some hostnames are ubiquitous on the internet.

For example, assets from facebook.com are pulled from countless web pages. Whenever a web page request assets from facebook.com, Facebook, through its logs, has the ability to use plenty of metadata from your IP (or yourself if you are logged in permanently) to infer a pretty good picture of your browsing habits.

Not everybody is comfortable with this and for good reasons. If you are not comfortable with this, it is nice to be able to blacklist facebook.com using HTTP Switchboard:

facebook.com blacklisted

But now what if you want to visit a web page on facebook.com or if you have an account on facebook.com which you still want to use?

facebook.com blacklisted

This is the dilemma: preventing facebook.com from tracking you, while being able to visit web pages on facebook.com itself. This is where HTTP Switchboard's per-site permissions come to the rescue:

facebook.com blacklisted

Here, per-site permissions for https://www.facebook.com are created. Notice the visual cue: when per-site permissions are active, the top of the pop-up menu is blueish, and the badge on the extension icon is blue.

facebook.com blacklisted

Whatever you whitelist/blacklist in per-site permissions mode will apply strictly to https://www.facebook.com in the above example. Any web page URL which does not start exactly with https://www.facebook.com will not use the permissions specific to https://www.facebook.com.

The specific permissions created above will not apply to http://www.facebook.com, https://facebook.com, https://www.facebook.net, etc.

facebook.com blacklisted

Per-site permissions must also be padlocked to stick, just like global permissions.

After you have created whitelist permissions specific to https://www.facebook.com, facebook.com is still blacklisted globally:

facebook.com blacklisted

So Facebook is from then on forbidden to log which web pages you are visiting, except when you visit web pages on https://www.facebook.com.

You can do the same for other ubiquitous hostnames which serve as assets store for countless web pages (ex. google.com, yahoo.com, etc.), while these hostnames also have web pages providing useful services: "blacklist google.com, yahoo.com, etc. except when I use a web page on https://www.google.com, https://www.yahoo.com, etc." Etc. etc. etc.

Clone this wiki locally