Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile server 403 page should tell people to use https://tile.openstreetmap.org #978

Closed
grischard opened this issue Oct 16, 2023 · 3 comments

Comments

@grischard
Copy link
Collaborator

LWG recently got an email from someone asking why their code was borken:

L.tileLayer( 'http://{s}.openstreetmap.org/{z}/{x}/{y}.png', {
	attribution: '&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap-Mitwirkende</a>',
	subdomains: ['odin', 'ysera', 'albi', 'bowser', 'pyrene']
}).addTo( map )

Obviously, they were getting 403s from the tile server since we only allow requesting tiles over the CDN.

The Apache 403 error message at, e.g., https://odin.openstreetmap.org/1/1/1.png should tell people to use https://tile.openstreetmap.org instead; maybe something like:

It seems you're trying to grab tiles directly from our tile server. For less error messages (and faster maps), please request them via our CDN at https://tile.openstreetmap.org/{z}{x}/{y}.png.

See also: #737

We could also update https://github.com/openstreetmap/chef/blob/master/cookbooks/tile/templates/default/index.html.erb and the tile usage policy.

Do we have logs to get an idea of the scale of the issue?

@tomhughes
Copy link
Member

Do we care much what the scale is? or indeed about helping people that have deliberately attempted to evade controls by choosing to use a URL that has never been published as any sort of official way to access the tiles...

@grischard
Copy link
Collaborator Author

Not really - but we care about reducing the incoming traffic to lwg - but on the gripping hand, this is the first report we get.

@pnorman
Copy link
Collaborator

pnorman commented Oct 16, 2023

I don't see a compelling reason to do this. We have no documentation anywhere that suggests their URLs would work, and I've never seen any. If people construct URLs by looking at our internal documentation and mashing stuff together they'll get errors. Interestingly, that code is broken in other ways - two of the servers listed are no longer tile servers.

@grischard grischard closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants