guerrerocarlos / CacheP2P

"More users = More capacity"
http://www.cachep2p.com/
MIT License
866 stars 52 forks source link

userscript #22

Open ofsahin opened 7 years ago

ofsahin commented 7 years ago

hello, i have a question. would it be possible or even feasible to use this mechanism on different web pages by injecting the code with tampermonkey/greasemonkey as userscript.

anyone else using the same userscript would be able to fetch pages from cachep2p nodes?

deckar01 commented 7 years ago

The problem is that you need a way to discover the torrent for the official content. Hashes of the content must be served by a trusted party (the original website) to ensure you are not downloading arbitrary content crafted by an attacker.

WikipediaP2P basically implemented your idea for Wikipedia (without Wikipedia's cooperation) as a browser plugin, but it leaves users open to attack by malicious seeders. See https://github.com/guerrerocarlos/WikipediaP2P/issues/5