summaryrefslogtreecommitdiff
path: root/searx/plugins/https_rules/GoogleMaps.xml
blob: 0f82c52673d5b450c5d3c6b1892c0d10f105fa12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--
	Problematic domains:

		- khms *
		- khms[0-3] *

	* $ 404s


	Fully covered domains:

		- google.com subdomains:

			- khms
			- khms[0-3]

-->
<ruleset name="Google Maps">

	<target host="maps.google.*" />
		<!--
			https://trac.torproject.org/projects/tor/ticket/8627
										-->
		<exclusion pattern="^http://maps\.google\.com/local_url" />
		<exclusion pattern="^http://maps\.google\.gr/transitathens" />
	<target host="maps.google.co.*" />
	<target host="khms.google.com" />
	<target host="khms0.google.com" />
	<target host="khms1.google.com" />
	<target host="khms2.google.com" />
	<target host="khms3.google.com" />
	<target host="maps-api-ssl.google.com" />
	<target host="mw2.google.com" />
	<target host="maps.google.com.*" />
	<target host="maps.googleapis.com" />
		<!--
			https://mail1.eff.org/pipermail/https-everywhere-rules/2012-September/001317.html
														-->
		<!--exclusion pattern="^http://maps\.googleapis\.com/map(files/lib/map_1_20\.swf|sapi/publicapi\?file=flashapi)" /-->
		<exclusion pattern="^http://maps\.googleapis\.com/map(?:files/lib/map_\d+_\d+\.swf|sapi/publicapi\?file=flashapi)" />
	<target host="maps.gstatic.com" />


	<!--securecookie host="^maps\.google\.(com?\.)?(au|ca|gh|ie|in|jm|ke|lk|my|n[agz]|pk|rw|sl|sg|ug|uk|za|zw)$" name=".+" /-->
	<securecookie host="^maps\.google\.[\w.]{2,6}$" name=".+" />
	<securecookie host="^maps\.g(?:oogle|oogleapis|static)\.com$" name=".+" />
	<securecookie host="^maps-api-ssl\.google\.com$" name=".+" />


	<rule from="^http://maps\.google\.([^/]+)/"
		to="https://maps.google.$1/" />

	<!--	http://khms.../$ 404s:
					-->
	<rule from="^http://khms\d?\.google\.com/+\??$"
		to="https://www.google.com/" />

	<rule from="^http://(khms\d?|maps-api-ssl|mw2)\.google\.com/"
		to="https://$1.google.com/" />

	<rule from="^http://maps\.g(oogleapis|static)\.com/"
		to="https://maps.g$1.com/" />

	<rule from="^https://maps\.googleapis\.com/map(?=files/lib/map_\d+_\d+\.swf|sapi/publicapi\?file=flashapi)"
		to="http://maps.googleapis.com/map" downgrade="1" />

</ruleset>