Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
4f8fef1
[Google Services] Removed bad target, Added m.google.* and google.*/m…
StevenRoddis Feb 15, 2015
48afcf3
[Google Services] lh\d. works on google.tld
StevenRoddis Feb 15, 2015
4627374
[Google Services] Added tests for Subdomains that work on all in goog…
StevenRoddis Feb 15, 2015
61a3c9c
[Google Services] Added tests for Subdomains that only exist/work on …
StevenRoddis Feb 15, 2015
a1b0772
[Google Services] Added more tests, merged knoll? with existing rule
StevenRoddis Feb 15, 2015
7d7161e
[Google Services] encrypted-tbn\d and tbn\d
StevenRoddis Feb 15, 2015
3ab1681
[Google Services] Added *.corp.googleusercontent.com and tests.
StevenRoddis Feb 15, 2015
71ffe5b
[Google Services] Moving wildcard subdomains together, adding more te…
StevenRoddis Feb 15, 2015
fae25ab
[Google Services] merging subdoomain to path redirects
StevenRoddis Feb 15, 2015
835a6fe
[Google Services] Added tests for *googlesource.com
StevenRoddis Feb 15, 2015
14a2719
[Google Services] Protecting the whole of www.google.com and google.com
StevenRoddis Feb 15, 2015
f892c12
[Google Services] Lots of test urls, cleared up some rules
StevenRoddis Feb 15, 2015
18b69fa
[Google Services] Force https on the whole of www.googletagservices.com
StevenRoddis Feb 16, 2015
05794eb
[Google Services] Fixed typo in lh\d test urls.
StevenRoddis Feb 16, 2015
cd1499e
[Google Services] Added test urls for news.google.com
StevenRoddis Feb 16, 2015
62ec6c0
[Google Services] Fixed typos in test urls ln->lh http// -> http://
StevenRoddis Feb 16, 2015
af61e40
[Google Services] Fixed missing \. in googlesource.com rule
StevenRoddis Feb 16, 2015
8b273d2
[Google Services] Widened scope for news.google.* exclusion
StevenRoddis Feb 16, 2015
69c87f5
[Google Services] Moved Google CSE higher up so it is matched first.
StevenRoddis Feb 16, 2015
6f71b27
[Google Services] Splitting Ruleset into one file for simple rules an…
StevenRoddis Feb 16, 2015
5ddd4a6
[Google Services] Removing redundant rules
StevenRoddis Feb 16, 2015
f83d6c4
[Google.com Subdomains] Added complex rules for those that can't be c…
StevenRoddis Feb 16, 2015
7b0ba18
[Google.com Subdomains] Added slides.google.com
StevenRoddis Feb 16, 2015
f273c55
[Google Services & Google.com Subdomains] Removed unnecessary rules, …
StevenRoddis Feb 16, 2015
317bb5b
[Google Services] Moving simple rules into GoogleServices_Simple.xml
StevenRoddis Feb 16, 2015
b42b70e
[Google Services & Google Services Simple] Moved Gmail into Simple
StevenRoddis Feb 16, 2015
d3105d3
Moved OCSP exception to Google Services Simple. Clarified TISP
StevenRoddis Feb 17, 2015
d966844
[Google Services] More tests
StevenRoddis Feb 17, 2015
2b7026a
[Google Services] Added test urls for open social exception
StevenRoddis Feb 17, 2015
c99c64f
Added tests for OCSP responder exception and removed unused targets f…
StevenRoddis Feb 17, 2015
e6c039b
[Google Services] Removed redundant rule, added more tests
StevenRoddis Feb 17, 2015
f694fd2
[Google Services] Changed Ordering of rules, to allow more specialise…
StevenRoddis Feb 17, 2015
e62c71d
[Google Services] Expanded test urls for /tisp
StevenRoddis Feb 17, 2015
c380d16
[Google Services Simple] Added googletagmanager.com
StevenRoddis Feb 18, 2015
c9b6b46
[Google & Google Services] Further Split www.google.tld and google.tl…
StevenRoddis Feb 19, 2015
a133bc0
[Google & Google Services] Simplified regex, moved exclusion into Goo…
StevenRoddis Feb 19, 2015
5df1d62
[Google & Google Services] Fixed up and added more test urls
StevenRoddis Feb 19, 2015
1879438
[Google] Little cosmetic fix
StevenRoddis Feb 19, 2015
92294f2
[Google Services] Added test urls for news.google.tld rule
StevenRoddis Feb 19, 2015
e0c9c8d
[Google.com Subdomains] Remove redundant rule
StevenRoddis Feb 19, 2015
38113a2
Added exclusion for /imgres/
StevenRoddis Feb 19, 2015
f622c6d
Split out rules further to have one file with simple rules and anothe…
StevenRoddis Feb 20, 2015
e9508aa
[Google Search & Google.com Subdomains] ipv6. -> subdomains and remov…
StevenRoddis Feb 20, 2015
5fff06f
clients\d -> clients1 as only clients1 supports https
StevenRoddis Feb 20, 2015
fc2f16f
Removed unneeded exclusions and unused targets
StevenRoddis Feb 20, 2015
3090416
Cleaning up GoogleSearch.xml
StevenRoddis Feb 21, 2015
b891e4c
Further cleanup of GoogleSearch.xml
StevenRoddis Feb 21, 2015
3239df5
[Google Search] Added test urls, cleaned up /firefox/
StevenRoddis Feb 21, 2015
9096240
[Google Search] Removed redundant targets
StevenRoddis Feb 21, 2015
89c8851
Removed GoogleCanada.xml as Google.xml covers it
StevenRoddis Feb 22, 2015
8f83057
Renamed GoogleServices (simple&complex) in line with the naming of Go…
StevenRoddis Feb 22, 2015
1837b24
Reworded comments. Simplified Google.org.xml
StevenRoddis Feb 22, 2015
3060625
Moves paths out of GoogleAPIs.xml to Google.xml
StevenRoddis Feb 22, 2015
ce74301
Moved subdomains from GoogleAPIs.xml to Google.com_Subdomains & Googl…
StevenRoddis Feb 22, 2015
e0b56d5
[GoogleAPIs] Added test urls
StevenRoddis Feb 22, 2015
656cb37
Moving stuff from GoogleSearch.xml into where they should belong
StevenRoddis Feb 22, 2015
b7dc7a6
Merged GoogleSearch.xml -> Google.xml
StevenRoddis Feb 22, 2015
3188769
scholar.google.com now supports HTTPS on all paths
StevenRoddis Feb 23, 2015
7dafed6
Moving *.google.tld rules into their own ruleset for clarity
StevenRoddis Feb 23, 2015
7e7680d
Removed redundant targets, moved securecookie tag into correct ruleset
StevenRoddis Feb 23, 2015
3a63ad4
news.google.com now supports HTTPS basically all over
StevenRoddis Feb 23, 2015
a9eb5f2
Fixed up securecookie tags
StevenRoddis Feb 23, 2015
981f7ef
Checked list of hosts, updated comments on which work and how.
StevenRoddis Feb 28, 2015
2dbaf88
Moving broken tlds into Google.xml and cleaning up GoogleImages.xml
StevenRoddis Feb 28, 2015
c584926
expanded target to pass build
StevenRoddis Feb 28, 2015
335cd9a
[Google.tld Subdomains] Fixed type in from url
StevenRoddis Mar 1, 2015
4b4bcb3
[Google] Added more test urls
StevenRoddis Mar 1, 2015
0aa30d5
[Google APIs] Added tests
StevenRoddis Mar 1, 2015
eca1796
[Google Images] Added tests for remaining rules
StevenRoddis Mar 1, 2015
258c2a1
[Google] expanded tests to cover non-www
StevenRoddis Mar 1, 2015
cd26829
[Google.com Subdomains (Complex)] Fixed typo in test url
StevenRoddis Mar 1, 2015
b437662
[Google.com Subdomains (Complex)] Fixed test urls incorrectly written…
StevenRoddis Mar 1, 2015
b43fc60
[Google Images] Clarified tbs=sbi
StevenRoddis Mar 1, 2015
939ac95
[Google Sorry] renamed, expanded coverage to whole of sorry.google.com
StevenRoddis Mar 1, 2015
ac859c6
[Google Maps] Reenabled Google Maps
StevenRoddis Mar 2, 2015
5f558d9
[Google Maps] Added more test urls removed exclusions that no longer …
StevenRoddis Mar 4, 2015
c1aa21e
Merge branch 'master' of https://github.com/EFForg/https-everywhere i…
StevenRoddis Mar 9, 2015
dc79ad3
[Google Maps] double hyphens are not allowed in comments in XML.
StevenRoddis Mar 9, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/chrome/content/rules/Google-mismatches.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!--

For other Google coverage, see GoogleServices.xml.

Problematic domains:

- (www.)apture.com (works, mismatched, CN: *.google.com)
Expand Down
141 changes: 141 additions & 0 deletions src/chrome/content/rules/Google.com_Subdomains.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<!--
See Google.com_Subdomains_Complex.html for rules that don't match the simple rule here
For other Google coverage, see GoogleServices.xml

Nonfunctional domains:

- partnerpage.google.com *
- picasa.google.com *
- www.picasa.google.com ²
- safebrowsing.clients.google.com (404, mismatched)
- (www.)googlesyndicatedsearch.com (404; mismatched, CN: google.com)
- buttons.googlesyndication.com *

* 404, valid cert
² 404; mismatched, CN: www.google.com

Problematic domains:

- www.goo.gl (404; mismatched, CN: *.google.com)

- www.news.google.ca ²

- google.com subdomains:

- cbks0 ****
- earth *
- gg ($ 404s)
- knoll *
- scholar **
- trends *

Partially covered domains:

- google.cctld subdomains:

- scholar (→ www)

- google.com subdomains:

- (www.)
- cbks0 ($ 404s)
- gg ($ 404s)
- news (→ www)
- scholar (→ www)
-->
<ruleset name="Google.com Subdomains">
<target host="admin.google.com" />
<target host="apis.google.com" />
<!-- See the complex ruleset for chart.apis -->
<target host="appengine.google.com" />
<target host="calendar.google.com" />
<target host="cast.google.com" />
<target host="cbks0.google.com" />
<target host="cert-test.sandbox.google.com" />
<target host="chat.google.com" />
<target host="checkout.google.com" />
<target host="chrome.google.com" />
<target host="clients.google.com" />
<!-- See the complex ruleset for clients\d -->
<!-- See the complex ruleset for *.clients\d -->
<target host="cloud.google.com" />
<target host="code.google.com" />
<!-- See the complex ruleset for codesearch -->
<target host="corp.google.com" />
<target host="*.corp.google.com" />
<!-- See the wildcard section -->
<target host="developers.google.com" />
<target host="dl.google.com" />
<target host="docs.google.com" />
<!-- See the complex ruleset for docs\d -->
<!-- See the complex ruleset for \d\.docs -->
<target host="drive.google.com" />
<target host="encrypted.google.com" />
<!-- See the complex ruleset for encrypted-tbn\d -->
<target host="feedburner.google.com" />
<target host="feedproxy.google.com" />
<target host="fiber.google.com" />
<target host="fonts.google.com" />
<target host="gg.google.com" />
<target host="glass.google.com" />
<target host="goto.google.com" />
<target host="health.google.com" />
<target host="helpouts.google.com" />
<target host="history.google.com" />
<target host="talkgadget.google.com" />
<target host="hostedtalkgadget.google.com" />
<target host="investor.google.com" />
<target host="ipv4.google.com" />
<target host="ipv6.google.com" />
<!-- See GoogleMaps.xml for khms\d? -->
<target host="knol.google.com" />
<target host="knoll.google.com" />
<target host="mail.google.com" />
<target host="chatenabled.mail.google.com" />
<!-- See GoogleMaps.xml for maps -->
<!-- See GoogleMaps.xml for maps-api-ssl -->
<!-- See GoogleMaps.xml for mw2 -->
<target host="pack.google.com" />
<target host="pki.google.com" />
<target host="play.google.com" />
<target host="plus.google.com" />
<target host="plus.sandbox.google.com" />
<target host="plusone.google.com" />
<target host="productforums.google.com" />
<target host="profiles.google.com" />
<target host="safebrowsing-cache.google.com" />
<target host="sb-ssl.google.com" />
<!-- see Google.tld_Subdomains.xml for scholar -->
<target host="script.google.com" />
<target host="security.google.com" />
<target host="services.google.com" />
<target host="servicessites.google.com" />
<target host="sites.google.com" />
<target host="slides.google.com" />
<!-- see GoogleSorry.xml for sorry -->
<target host="spreadsheets.google.com" />
<target host="suggestqueries.google.com" />
<target host="support.google.com" />
<target host="talk.google.com" />
<!-- See the complex ruleset for tbn\d -->
<target host="tools.google.com" />
<target host="wallet.google.com" />

<securecookie host="^(?:\.code|login\.corp|developers|docs|\d\.docs|fiber|mail|plus|\.?productforums|support)\.google\.[\w.]{2,6}$" name=".+" />

<!-- *.corp wildcard -->
<rule from="^http://([\w-]+)\.corp\.google\.com/"
to="https://$1.corp.google.com/" />
<test url="http://login.corp.google.com/" />
<test url="http://ideas.corp.google.com/" />
<test url="http://discovery.corp.google.com/" />

<!-- subdomain to path redirects -->
<rule from="^http://(earth|trends)\.google\.com/"
to="https://www.google.com/$1" />
<test url="http://earth.google.com/" />
<test url="http://trends.google.com/" />

<rule from="^http:"
to="https:" />
</ruleset>
72 changes: 72 additions & 0 deletions src/chrome/content/rules/Google.com_Subdomains_Complex.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!--
Other Google rulesets:
- See Google.com_Subdomains.html for rules that don't match the complex rule here
- See GoogleServices.xml for the list
-->
<ruleset name="Google.com Subdomains (Complex)">
<target host="*.google.com" />

<rule from="^http://(clients\d)\.google\.com/"
to="https://clients1.google.com/" />
<test url="http://clients1.google.com/" />
<test url="http://clients2.google.com/" />
<test url="http://clients3.google.com/" />
<!--
The need for clients\d -> clients1

"http://clients2.google.com/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1"
HTTP/1.1 200 OK
"https://clients2.google.com/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1"
HTTP/1.1 404 Not Found
"https://clients1.google.com/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1"s
HTTP/1.1 200 OK
-->
<!-- This is needed for OCSP responder to work.
If OCSP checking is set to hard-fail the user-agent might have troubles accessing some HTTPS sites
-->
<exclusion pattern="^http://clients[0-9]\.google\.com/ocsp"/>
<test url="http://clients1.google.com/ocsp" />
<test url="http://clients2.google.com/ocsp" />
<test url="http://clients3.google.com/ocsp" />

<rule from="^http://(docs\d)\.google\.com/"
to="https://$1.google.com/" />
<test url="http://docs1.google.com/" />
<test url="http://docs2.google.com/" />
<test url="http://docs3.google.com/" />

<rule from="^http://(\d\.docs)\.google\.com/"
to="https://$1.google.com/" />
<test url="http://1.docs.google.com/" />
<test url="http://2.docs.google.com/" />
<test url="http://3.docs.google.com/" />

<rule from="^http://(spreadsheets\d)\.google\.com/"
to="https://$1.google.com/" />
<test url="http://spreadsheets1.google.com/" />
<test url="http://spreadsheets2.google.com/" />
<test url="http://spreadsheets3.google.com/" />

<rule from="^http://(?:encrypted-)?tbn(\d)\.google\.com/"
to="https://encrypted-tbn$1.google.com/" />
<test url="http://encrypted-tbn1.google.com/" />
<test url="http://encrypted-tbn2.google.com/" />
<test url="http://encrypted-tbn3.google.com/" />
<test url="http://tbn1.google.com/" />
<test url="http://tbn2.google.com/" />
<test url="http://tbn3.google.com/" />

<rule from="^http://chart\.apis\.google\.com/chart"
to="https://chart.googleapis.com/chart" />
<test url="http://chart.apis.google.com/chart" />

<rule from="^http://([\w-]+)\.clients\.google\.com/"
to="https://$1.clients.google.com/" />
<test url="http://foo.clients.google.com/bar" />
<test url="http://bar.clients.google.com/" />
<test url="http://foobar.clients.google.com/foobar" />

<rule from="^http://codesearch\.google\.com/"
to="https://www.google.com/codesearch/" />
<test url="http://codesearch.google.com/" />
</ruleset>
10 changes: 3 additions & 7 deletions src/chrome/content/rules/Google.org.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<!--
For other Google coverage, see GoogleServices.xml.

For other Google coverage, see GoogleServices.xml
-->
<ruleset name="Google.org">

<target host="google.org" />
<target host="www.google.org" />


<rule from="^http://(www\.)?google\.org/"
to="https://$1google.org/" />

<rule from="^http:"
to="https:" />
</ruleset>
68 changes: 68 additions & 0 deletions src/chrome/content/rules/Google.tld_Subdomains.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!--
For other Google coverage, see GoogleServices.xml

This ruleset is subdomains that exist on google.tld (not just google.com)

*** images.google.tld is covered in GoogleImages.xml ***
-->
<ruleset name="Google.tld Subdomains">
<!--
failure: *.google.* failed: The target host must be a hostname, not URL, and must use at most one wildcard.
-->
<target host="accounts.google.*" />
<target host="adwords.google.*" />
<target host="finance.google.*" />
<target host="groups.google.*" />
<target host="id.google.*" />
<target host="lh2.google.*" />
<target host="lh3.google.*" />
<target host="lh4.google.*" />
<target host="lh5.google.*" />
<target host="lh6.google.*" />
<target host="m.google.*" />
<target host="news.google.*" />
<target host="picasaweb.google.*" />
<target host="scholar.google.*" />

<securecookie host="^(?:accounts|adwords|m|picasaweb)\.google\.[\w.]{2,6}$" name=".+" />

<!-- path that 404 on https but 301 on http -->
<rule from="^http://news\.google\.((?:com?\.)?\w{2,3})/archivesearch"
to="https://news.google.$1/news/advanced_news_search" />
<test url="http://news.google.ca/archivesearch" />
<test url="http://news.google.com/archivesearch" />
<test url="http://news.google.com.au/archivesearch" />

<rule from="^http://(accounts|adwords|finance|groups|id|lh\d|m|news|picasaweb|scholar)\.google\.((?:com?\.)?\w{2,3})/"
to="https://$1.google.$2/" />
<test url="http://accounts.google.ca/" />
<test url="http://accounts.google.com/" />
<test url="http://accounts.google.com.au/" />
<test url="http://adwords.google.ca/" />
<test url="http://adwords.google.com/" />
<test url="http://adwords.google.com.au/" />
<test url="http://finance.google.ca/" />
<test url="http://finance.google.com/" />
<test url="http://finance.google.com.au/" />
<test url="http://groups.google.ca/" />
<test url="http://groups.google.com/" />
<test url="http://groups.google.com.au/" />
<test url="http://id.google.ca/" />
<test url="http://id.google.com/" />
<test url="http://id.google.com.au/" />
<test url="http://lh3.google.ca/" />
<test url="http://lh4.google.com/" />
<test url="http://lh5.google.com.au/" />
<test url="http://m.google.ca/" />
<test url="http://m.google.com/" />
<test url="http://m.google.com.au/" />
<test url="http://news.google.ca/" />
<test url="http://news.google.com/" />
<test url="http://news.google.com.au/" />
<test url="http://picasaweb.google.ca/" />
<test url="http://picasaweb.google.com/" />
<test url="http://picasaweb.google.com.au/" />
<test url="http://scholar.google.ca/" />
<test url="http://scholar.google.com/" />
<test url="http://scholar.google.com.au/" />
</ruleset>
Loading