I’ve had an interesting question for a while. Note that if this is indeed possible, I advice attempting it with caution, as it may lead to what some consider copyright infringement. Here is my question:
We know how IPFS works when browsing websites in the network. You type the URL http://127.0.0.1:8080/ipfs/my_hash_here into your browser, the js-ipfs or go-ipfs node on your computer loads up the website, and in the process it temporarily stores every file on it and seeds it for other nodes.
What I want to know: Suppose you have js-ipfs or go-ipfs installed. You are browsing a normal website on the internet, like deviantart.com or youtube.com or twitter.com or whatever. Is it possible to teach your web browser to also add and seed copies of those websites in the IPFS network as you visit them? Oppositely, could the browser also learn to look inside IPFS for every file embedded on a website (image, video, etc)?
My idea is that if enough people had such a browser capability, they could essentially mirror parts of the existing internet onto IPFS as they visit them. This would obviously only work to a very light extent: You can’t mirror the PHP scripts or MySQL databases behind a given site, so obviously you couldn’t replicate the functionality its server offers. However you could replicate certain resources, which would namely be useful when browsing sites with a lot of images / videos / audio.
An example: Imagine your node automatically running “ipfs add” for every Youtube video you watch, transferring the source from Google’s servers into the network. When you then want to view that video, your IPFS node will additionally know to look for it inside the network and override the source so you can watch the video on youtube.com without even loading it from its server!