<ruleset name="GoogleMaps">
	<target host="maps.google.com" />
	<target host="maps.gstatic.com" />
	<target host="maps-api-ssl.google.com"/>
	<target host="maps.googleapis.com"/>
		<exclusion pattern="^http://maps\.googleapis\.com/map(?:files/lib/map_1_20\.swf|sapi/publicapi\?file=flashapi)" />
	<target host="maps.google.*"/>
	<target host="maps.google.com.*"/>
	<target host="maps.google.co.*"/>
  <exclusion pattern="^http://maps\.google\.gr/transitathens" />

  <!-- https://trac.torproject.org/projects/tor/ticket/8627 -->
  <exclusion pattern="^http://maps\.google\.com/local_url" />
	<!-- https://mail1.eff.org/pipermail/https-everywhere-rules/2012-September/001317.html -->
  <exclusion pattern="^http://maps\.googleapis\.com/map(?:files/lib/map_[0-9]+_[0-9]+\.swf|sapi/publicapi\?file=flashapi)" />

	<securecookie host="^maps\.google\.(com?\.)?(au|ca|gh|ie|in|jm|ke|lk|my|na|ng|nz|pk|rw|sl|sg|ug|uk|za|zw)$" name=".*"/>
	<securecookie host="^maps\.(google|gstatic|googleapis)\.com$" name=".*"/>
	<securecookie host="^maps-api-ssl\.google\.com$" name=".*"/>

	<rule from="^http://maps\.(google|gstatic|googleapis)\.com/" to="https://maps.$1.com/"/>
	<rule from="^http://maps\.google\.([^/]+)/" to="https://maps.google.$1/"/>
	<rule from="^http://maps-api-ssl\.google\.com/" to="https://maps-api-ssl.google.com/"/>

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

</ruleset>

