I am trying to make a website that will let visitors run some tests accessing content on the IPFS network vs content on the web.
At the moment I am using ipfs.io links to access IPFS resources from the browser. It is my understanding that If the visitor has the IPFS companion and server running on their computer, then ipfs.io links will be intercepted and resolved by the IPFS network. However, if the visitor doesn’t have these installed, then it will go to an IPFS HTTP gateway instead, which will give the wrong test results.
Is there a way to check whether or not the user has IPFS companion and a server running / or a way to check if requests are being served through the IPFS HTTP gateway as opposed to the IPFS network directly?
I think I found a way to check if the chrome or firefox extension is installed in the first place, but I don’t think that’s sufficient to know if the desktop server is also running correctly and using the IPFS network vs http gateways. Is that the best I can do?
Below is a link I found that I think should let me tell if the IPFS companion chrome extension is installed for example.
twilio com /blog/2018/03/detect-chrome-extension-installed.html