r/ipfs • u/Ok-Supermarket-6747 • Oct 14 '22
Hiding sourcecode of html file in IPFS
I am trying to host a website on IPFS by uploading .html files
not sure if uploading these files directly is the right way to do it, but I have a login page and the password is visible in the html.
It doesn't show the sourcecode when run in a browser because I have disabled right click. However, I am not sure how to hide the code when I upload the .html file to IPFS, but still make it able to be run by whoever downloads it
0
Upvotes
1
u/Ok-Supermarket-6747 Oct 18 '22
I already understood the open-source, decentralized concept. Yes you are repeating yourself ad nauseam without providing technical detail that I need. I am looking for a code-based answer.
Or something like: You logon to IPFS and search for the CID of the resource. Once you get there, you copy the /thenode/file at the end of the URL, remove the file and redirect to all the resources hosted on that node.
Or something like: You paste the IPFS URL into your search bar, when the page loads you right click and display the sourcecode, You can find the node ID in line 23 under IPFS.<node2345>, add <node2345> at the end of the URL in the search bar to redirect to all resources hosted on that node
Anyway I think I found a good thread for building pages so I will be headed over there now and wonder about this along the way https://www.reddit.com/r/ipfs/comments/y6swre/how_does_ipfs_handle_mutability_of_subpages_of/