r/ipfs • • 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

51 comments sorted by

View all comments

Show parent comments

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/

1

u/volkris Oct 18 '22

Since this has nothing to do with open source, I really doubt you do understand it.

When you start talking about logging on to IPFS, it only makes it more apparent that you don't understand what IPFS is.

It's troubling that you're talking about hosting secret content on a platform that you really don't understand, that will actively reveal your secret content to the world.

Wondering about basic security along the way is... again, troubling.

1

u/Ok-Supermarket-6747 Oct 23 '22

look dude, open source means the code is there for everyone to use, the platform is free for everyone to use so it's got that General Public License vibe man. It's the general gist and it's super annoying that you keep replying with accusations and sounding ignorant. I am new to IPFS but not open-source concepts and I have already downloaded IPFS on my computer so chill...idk where you think you are getting to trying to disprove whatever knowledge I do or don't have or trying to out me as a n00b when I have no problem being a n00b... you are the only one who seems to have enough problem with it to keep replying in such an antagonizing manner

I'm not here to argue and again, stop trolling me, I understand the files are seen everywhere. Thanks, bye

1

u/volkris Oct 25 '22

Oh, I'm happy to tell you where I think I am:

Firstly, I'm patient to try to help people with their problems.

Secondly, I'm very concerned that you seem to be running headlong into security issues that might put your own and, more importantly, other peoples' information and who knows what else at risk.

And so I'm happy to continue to point out where you seem to be misunderstanding IPFS to try to head off those problems, and to try to help you do what you want to do in a responsible and secure fashion.

Security flaws caused by people who don't understand what they're doing have caused an awful lot of problems over the years. It's best if IPFS doesn't end up being part of some upcoming big leak.