[HTTPS-E Rulesets] Google Maps
Osama Khalid
osamak at gnu.org
Fri May 20 04:05:07 PDT 2011
Google Maps partially supports HTTPS. This patch enables HTTPS for
it, its API and it images.
Tested on Google Maps website and on Gowalla with no errors.
--Osama Khalid
-------------- next part --------------
diff --git a/src/chrome/content/rules/GoogleAPIs.xml b/src/chrome/content/rules/GoogleAPIs.xml
index 2c1da47..8e61cce 100644
--- a/src/chrome/content/rules/GoogleAPIs.xml
+++ b/src/chrome/content/rules/GoogleAPIs.xml
@@ -1,19 +1,17 @@
<ruleset name="Google APIs">
<target host="www.google-analytics.com" />
<target host="ssl.google-analytics.com" />
- <target host="ajax.googleapis.com" />
- <target host="fonts.googleapis.com" />
- <target host="chart.googleapis.com" />
+ <target host="*.googleapis.com" />
<target host="themes.googleusercontent.com" />
- <target host="translate.googleapis.com" />
<target host="webcache.googleusercontent.com" />
<target host="static.googleusercontent.com" />
<target host="api.recaptcha.net" />
<target host="google.com" />
- <target host="www.google.com" />
+ <target host="*.google.com" />
<target host="gstatic.com" />
<target host="*.gstatic.com" />
<target host="gdata.youtube.com" />
+ <target host="gmaptiles.co.kr" />
<rule from="^http://www\.google-analytics\.com/"
to="https://ssl.google-analytics.com/"/>
@@ -29,6 +27,20 @@
to="https://static.googleusercontent.com/"/>
<rule from="^http://translate\.googleapis\.com/"
to="https://translate.googleapis.com/"/>
+ <rule from="^http://maps\.google\.com/maps/api/"
+ to="https://maps.google.com/maps/api/"/>
+ <rule from="^http://maps\.gstatic\.com/intl/"
+ to="https://maps-api-ssl.google.com/intl/"/>
+ <rule from="^http://maps\.gstatic\.com/mapfiles/"
+ to="https://maps-api-ssl.google.com/mapfiles/"/>
+
+<!-- These subdomains are used by Google Maps.-->
+ <rule from="^http://(cbks|cbks0|cbks1|khms0|khms1|mts0|mts1)\.googleapis\.com/"
+ to="https://$1.googleapis.com/"/>
+ <rule from="^http://(mt0|mt1)\.gmaptiles\.co\.kr/"
+ to="https://$1.gmaptiles.co.kr/"/>
+ <rule from="^http://(cbks0|cbks1|khms0|khms1|mts0|mts1)\.google\.com/"
+ to="https://$1.google.com/"/>
<!-- There is an interesting question about whether we should
append &strip=1 to all cache URLs. This causes them to load without
diff --git a/src/chrome/content/rules/GoogleServices.xml b/src/chrome/content/rules/GoogleServices.xml
index 8dd141b..fd67274 100644
--- a/src/chrome/content/rules/GoogleServices.xml
+++ b/src/chrome/content/rules/GoogleServices.xml
@@ -40,6 +40,8 @@
to="https://code.google.com/"/>
<rule from="^http://sites\.google\.com/"
to="https://sites.google.com/"/>
+ <rule from="^http://maps\.google\.com/"
+ to="https://maps.google.com/"/>
<rule from="^http://(www\.)?google((\.com?)?(\.[^/@:][^/@:])?)/calendar"
to="https://www.google$2/calendar" />
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.eff.org/pipermail/https-everywhere-rules/attachments/20110520/f1312f17/attachment.sig>
More information about the HTTPS-Everywhere-Rules
mailing list