Hi,
As far as I remember, you're not planning on touching other tags, like
`contact:website`. *But* what happens if an object has
`website=http://example.com,contact:website=http://example.com`? You'd
make it inconsistant!
I suggest a simple solution: If any other tag has that same value, then
skip that object. Then it won't be made "inconsistant". I have no idea
how many objects this applies to, possibly none! Hopefully you're script
will be able to tell us :)
Rory
On 22/02/2019 08:02, Bryce Jasmer wrote:
I have written a script that will search for OSM objects that have a
website tag that explicitly states "http://..." or implicitly uses http
by leaving of the protocol specification. The script will then loop
through all that it discovers and asks the http site if it will redirect
me to the secure version of the website over the https protocol. If it
does, I will update the database with the new value.
This has a couple of advantages. From now through the end of time, any
user clicking on one of those links will be spared the time it takes to
establish the connection, ask if there is a secure version of the site,
and tear down the connection. It's on the order of 10-200 ms to do, but
over the life of the link and the number of objects that are clicked and
the population, this could save centuries of time :-)
Another advantage is that it will make https more pervasive and
hopefully people will start thinking https and forgetting all about
http. A more secure internet is in all of our best interests.
Anyway, I'd like to (slowly) run this across the planet. I've discussed
this on the US Slack channel and have performed the actions on the
United States already. I've addressed many questions and have heard no
strong objections. I'm seeking feedback from the larger community now
before proceeding.
The wiki page is https://wiki.openstreetmap.org/wiki/Automated_Edits/b-jazz
The Slack conversation is available, but has died down and the
transcript is available at the wiki page mentioned above.
The diary entry with some more conversation is at the bot's page:
https://www.openstreetmap.org/user/b-jazz-bot/diary/47743
The source code is available on GitLab for review:
https://gitlab.com/b-jazz/https_all_the_things
Example changeset for a run over the "9yfd" geohash:
https://www.openstreetmap.org/changeset/67454775
I welcome your input.
_______________________________________________
talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/talk
_______________________________________________
talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/talk