<p></p>
<p dir="auto">Since the main objective here is to disallow unintentional copyright violation (this won’t stop deliberate maneuvering around the blacklist), blocking all Google related imagery could be split in two parts:</p>
<ol dir="auto">
<li>All data from the domain could be blocked: <code>".*\.google(apis)?\..*/.*"</code>, since I couldn't come up with reasonable URLs which would additionally be blocked because of this. Notice that <a href="https://www.openstreetmap.org/id#background=custom:https://gibs.earthdata.nasa.gov/wmts/epsg3857/all/VIIRS_SNPP_CorrectedReflectance_TrueColor/default/2022-04-08/GoogleMapsCompatible_Level9/%7Bz%7D/%7By%7D/%7Bx%7D.jpg" rel="nofollow">most links just including "google"</a> aren't matched.</li>
<li>Additionally, in a second entry, Google's embedded parameters could also be matched: <code>".*pb=.*(!\d[a-z]\d+){3,}.*"</code>, which could serve as a failsafe if IP addresses, redirects or other tricks out of scope are used.</li>
</ol>
<p dir="auto">This double filter would only let the vt or kh endpoints slip through, if the URL is deliberately crafted excluding the blacklisted domains.<br>
I'm providing variant A (matching domain and parameters, preferred) and variant B (only matching the domain) in reverse order.<br>
So I suggest merging version A, and if someone does find permitted imagery/data matched by these filters they can be reduced to version B or discussed again.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3512#issuecomment-1094119761">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNLJM6PF4SOFCOVVUTVEHSDDANCNFSM5RVXIWSQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNVWGS4CPX2RHPAM7TVEHSDDA5CNFSM5RVXIWS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIE3PCUI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/3512/c1094119761</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3512#issuecomment-1094119761",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3512#issuecomment-1094119761",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>