Open wandrien opened 5 years ago
Mentioned sprite add-on tries to support all but that can cause more problems then it solves.
Why do you think so?
Because there is currently no standard, all options should be possible. When standard will be created, only is should be enabled.
As far as I know, the only thing my extension potentially screws up are *.bit
domains on regular browsers but that's pretty much it
@sprite-1 Can you add configuration page to let users manage which keywords, addresses and TLDs should be rewritten? This would be useful if the user does not need all possibilities or you forgot some of them. It should have the following option:
Keywords: [keyword] [address]
(user chooses [keyword]
) -> http://127.0.0.1:43110/[address]
(example zn 1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F
)
Keywords: [host]/[address]
(user chooses [host]
) -> http://127.0.0.1:43110/[address]
(example http://zero/1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F
)
Domain without stripped TLD: *.bit
, *.yo
, *.yu
...
Domain with stripped TLD: *.zero
, *.zeronet
...
@filips123 Scenario: someone pastes link in reddit etc with http://mydomain.zeronetrocks but you don't have that particular plug-in that will redirect properly and you have to manually extract "mydomain".
@krzysztof113 This is not what that plugin is meant for. And how would you actually do this with a plugin?
This needs to be done with ZeroNet changes. Public ZeroNet instance should accept URL like talk.zeronetwork.bit.example.com
where talk.zeronetwork.bit
is ZeroNet domain and example.com
is proxy URL. The instance should then extract ZeroNet domain, lookup site and serve it. This can't be done with plugin.
For local ZeroNet instances, talk.zeronetwork.bit.zeronet
is enought. It should be handled by local ZeroNet instance and can be done with proxy PAC file, custom DNS or DoH server, system program or browser plugin. However, all cases would require ZeroNet changes to handle server on custom URLs.
See this issue, issues linked from this issue and issues that link this issue for details.
Can you add configuration page to let users manage which keywords, addresses and TLDs should be rewritten?
I've been meaning to do this but just haven't had the time yet lately so it's definitely something I want in there
I created a comment about different ways of accessing ZeroNet and ways of implementing that in https://github.com/HelloZeroNet/ZeroNet/issues/2100#issuecomment-544664709.
Some related comments and discussions:
The idea:
ZeroNet site should be accessible with both
http://127.0.0.1:43110/...
andhttp://.../
via a proxy.When accessing zites with a proxy, the pseudo-TLD
.zeronet
is used:http://<address>.zeronet/
When accessing zites with
http://127.0.0.1:43110/
, the.zeronet
part can be ommitted and is ignored by the core if present. These point to the same site:http://127.0.0.1:43110/<address>
- the classic way.http://127.0.0.1:43110/<address>.zeronet
- for similar look&feel to the proxied addresses.The second-level domains are handled by plugins.
The proposed second-level domain schemes:
Namecoin domains:
.bit.zeronet
Cert-based, as proposed in https://github.com/HelloZeroNet/ZeroNet/issues/1696:
.user.zeronet
Opennic-based (https://github.com/HelloZeroNet/ZeroNet/issues/104):
.opennic.zeronet
Onion-based (the protocol proposal hasn't been published yet):
.onion.zeronet