Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Redirect gateway.ipfs.io to ipfs.io #112

Closed
ghost opened this issue Nov 9, 2015 · 6 comments
Closed

Redirect gateway.ipfs.io to ipfs.io #112

ghost opened this issue Nov 9, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Nov 9, 2015

gateway.ipfs.io has been obsolete for a while, and we should redirect everything to ipfs.io with status 301 Moved Permanently.

@ghost ghost added the solarnet label Nov 9, 2015
@jbenet
Copy link
Member

jbenet commented Nov 10, 2015

Before we do i should bring this up: i've received strong indications from several people that have run services where users can add content or which proxy to other things that it is pretty important to have the domain itself be clear that it's user's content and not the organization's.

Examples:

I of course don't like that, but it's worth considering.

some options:

  • ipfs.link
  • keep gateway.ipfs.io (yuck so long)

cc @kyledrake @virgil for thoughts

@kyledrake
Copy link

IIRC, Github had two concerns:

  • People confusing *.github.com sites for github.com. You would get a flavor of this problem if I created "admin.github.com" and put a phishing login form on it.
  • Any future security issues with browsers that could break the cross-domain security rules. It's largely theoretical but certainly isn't unhealthy to worry about it.

Problem 1 doesn't apply here, but problem 2 exists by default because of the way cross-domain security works. You will NOT safely be able to do any logins on ipfs.io, and it could be dangerous to use things like localStorage with browsers, as IPFS apps may do, as any other application will have access to it.

The only way to resolve this problem with today's browser security model is the HSHCA stuff I came up with for Neocities https://github.com/neocities/hshca

Surprisingly stable (for what it is) proxy: https://github.com/neocities/hshca-proxy

@kyledrake
Copy link

One interesting idea would be to have the front (ipfs.io) redirect to ipfs.io/ipns/ipfs.io, which would then be the web site, except loaded directly from IPFS. Or the latest hash (ipfs.io/ipfs/hash)

@jbenet
Copy link
Member

jbenet commented Nov 10, 2015

One interesting idea would be to have the front (ipfs.io) redirect to ipfs.io/ipns/ipfs.io, which would then be the web site, except loaded directly from IPFS. Or the latest hash (ipfs.io/ipfs/hash)

I'd be down with that. it would highlight how it's meant to work

@jbenet
Copy link
Member

jbenet commented Nov 10, 2015

we could ditch ipfs.io for the main site and use ipfs-project.io which redirects to ipfs.io/ipns/ipfs-project.io or something so it doesn't confuse people. (but maybe over analyzing)

@davidar
Copy link
Member

davidar commented Nov 10, 2015

it could be dangerous to use things like localStorage with browsers, as IPFS apps may do, as any other application will have access to it

Yeah, I hit this problem myself with porting vector.im over to ipfs

redirect to ipfs.io/ipns/ipfs.io

👍 would be a good demonstration that websites can be hosted on ipfs

we could ditch ipfs.io for the main site and use ipfs-project.io

Other domain names that are available:

  • ipfs.software
  • ipfs.community
  • ipfs.support
  • ipfs.center
  • ipfs.technology
  • ipfs.sucks :p

@ghost ghost mentioned this issue Mar 22, 2016
59 tasks
@ghost ghost added gateway and removed solarnet labels Nov 3, 2016
@eefahy eefahy added need/community-input Needs input from the wider community and removed gateway labels Aug 10, 2018
@eefahy eefahy closed this as completed Dec 10, 2018
@ghost ghost removed the need/community-input Needs input from the wider community label Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants