[HTTPS-Everywhere] Three patches: torrentz, isohunt and addthis

Osama Khalid osamak at gnu.org
Sun Dec 19 10:38:04 PST 2010


Hello,

These are three patches fixing and extending the current rules.

* torrentz.patch: Torrentz is moving to the .eu domain.[0] The contents
  are the same, so HTTPSEverywhere should redirecting all requests to
  the new domain.
* isohunt.patch: The old rule was broken because "to" had a regex
  character in it. Removing that.
* addthis.patch: AddThis widget (which includes scripts and static
  images) should now load in HTTPS.

These patches are probably too travel to be covered by copyright but
in case they're eligible, they're licensed under GPLv2+.

[0]: http://torrentfreak.com/bittorrent-domain-exodus-continues-as-torrentz-dumps-com-101218/

--Osama Khalid
-------------- next part --------------
diff --git a/src/chrome/content/rules/IsoHunt.xml b/src/chrome/content/rules/IsoHunt.xml
index 5e351d0..46dc0b6 100644
--- a/src/chrome/content/rules/IsoHunt.xml
+++ b/src/chrome/content/rules/IsoHunt.xml
@@ -2,5 +2,5 @@
     <target host="isohunt.com" />
     <target host="www.isohunt.com" />
 
-    <rule from="^http://(www\.)?isohunt\.com/" to="^https://isohunt.com/"/>
+    <rule from="^http://(www\.)?isohunt\.com/" to="https://isohunt.com/"/>
 </ruleset>
-------------- next part --------------
diff --git a/src/chrome/content/rules/AddThis.xml b/src/chrome/content/rules/AddThis.xml
index f15796c..f0ab3d3 100644
--- a/src/chrome/content/rules/AddThis.xml
+++ b/src/chrome/content/rules/AddThis.xml
@@ -2,7 +2,15 @@
   <target host="www.addthis.com" />
   <target host="addthis.com" />
   <target host="api.addthis.com" />
+  <target host="ds.addthis.com" />
+  <!--These servers are known to support HTTPS-->
+  <target host="s3.addthis.com" />
+  <target host="s5.addthis.com" />
+  <target host="s7.addthis.com" />
+  <target host="s9.addthis.com" />
 
   <rule from="^http://(www\.)?addthis\.com/bookmark\.php" to="https://www.addthis.com/bookmark.php"/>
   <rule from="^http://api\.addthis\.com/" to="https://api.addthis.com/"/>
+  <rule from="^http://s(3|5|7|9)\.addthis\.com/" to="https://s$1.addthis.com/"/>
+  <rule from="^http://ds\.addthis\.com" to="https://ds.addthis.com" />
 </ruleset>
-------------- next part --------------
diff --git a/src/chrome/content/rules/Torrentz.xml b/src/chrome/content/rules/Torrentz.xml
index e753f3f..4fe62c4 100644
--- a/src/chrome/content/rules/Torrentz.xml
+++ b/src/chrome/content/rules/Torrentz.xml
@@ -1,9 +1,10 @@
 <ruleset name="Torrentz">
   <target host="torrentz.com" />
   <target host="www.torrentz.com" />
-<!-- these cause cert warnings :( -->
-<target host="torrentz.eu" /> 
-<target host="www.torrentz.eu" /> 
+  <target host="torrentz.eu" /> 
+  <target host="www.torrentz.eu" />
 
-  <rule from="^https?://(www\.)?torrentz\.(com|eu)/" to="https://www.torrentz.$2/"/>
+  <!--Torrentz is moving to .eu. All HTTPS requests should go to the new domain.-->
+  <!--Accessing www.torrentz.eu shows a certificate error, torrentz.eu does not.-->
+  <rule from="^https?://(www\.)?torrentz\.(com|eu)/" to="https://torrentz.eu/"/>
 </ruleset>


More information about the HTTPS-everywhere mailing list