Submitted by sergi09239009 in Tech (edited )

The way it works is that there are a number of manually crafted rules that determine how to write URLs in your browser, for example the Google ruleset rewrites http://www.google.com to https://www.google.com. These rules are written in XML, to give an example: example.com.xml would have the form:

<ruleset name="example.com">
	<target host="example.com" />
	<target host="www.example.com" />

	<rule from="^http:" to="https:" />
</ruleset>

The <rule from="^http:" to="https:" /> tells it to write all http:// requests to https:// and the <target host="example.com" /> tells it that this URL should be subjected to that rewrite rule.

You can see a list of all the rules here:

https://github.com/EFForg/https-everywhere/tree/master/src/chrome/content/rules

You can help the project by submitting your own rules or fixing and updating other existing rules:

https://github.com/EFForg/https-everywhere/blob/master/CONTRIBUTING.md

59

Comments

You must log in or register to comment.

ziq wrote

Good stuff, thanks.

24

SummersIsle wrote

Brave browser comes with this, uBlock and noscript pre-installed

5

boringskip wrote

It also has some weird bitcoin funding model where they replace ads with their own ads, and it's run by the Mozilla guy that was fired for being anti-gay

−1

r0gErThAt_excellent wrote

So just cause he was anti-gay marriage (and not "anti-gay") that means his company and its products suck?

2

[deleted] wrote (edited )

−1

r0gErThAt_excellent wrote

No, they also suck because of the ad replacing thing that was mentioned in the post you replied to. How did that escape you?

Number 1: How does that disprove what I said earlier?

Number 2: Well they don't "replace ads with their own ads", that's just wrong:

Brave ads only exist as an experimental setting, and it is and will remained disabled by default and opt-in. If released one day, it is using on device only data and opt-in.

Brave payments (donations to publishers) is opt-in, done anonymously, and on device if enabled using the Anonize protocol.

Code is fully open source and auditable here: https://github.com/brave/browser-laptop https://github.com/brave/muon https://github.com/brave/ad-block https://github.com/brave/tracking-protection https://github.com/brave/sync

4

Prismatic_Iguana wrote

This is so over my head but I'm thankful to all you tech wizards!

4