HTTPS Everywhere is a Firefox, Chrome, and Opera extension by the Tor Project and the EFF that encrypts your communications with many major websites, making your browsing more secure.
eff.orgSubmitted 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
ziq wrote
Good stuff, thanks.