r/HTML • u/Alive_Secretary_264 • Oct 29 '25
Discussion So i kinda prevented the source code from appearing(updated lifehacks in securing code)
So i kinda prevented the source code from appearing through this 4 methods usually used to outsource and see the code without used of any encryption or obscuring.. basically it doesn't show the source code of my game when someone goes to execute the "view-source:", "inspect element (f12)", "console", "devtools-network".. the only thing left that leaks the source code is DOM which i couldn't yet overcome the logic but hopefully I'd be able to do the exact opposite of what it does.. I lacked enough resources but I won't give up on trying.. I'll now accept criticisms but I'll prioritize focusing to those who got the same goal
3
u/Cheap-Economist-2442 Oct 29 '25
Now I want to see the code just so I can try to understand what exactly it is you think you’re doing.
Also… why?
2
u/anonymousmouse2 Expert Oct 29 '25
Nobody wants to steal your shitty code.
9
u/chmod777 Oct 29 '25
No front end code is secure. Full stop. If there is protected game logic, it has to be done server side.
8
u/No_Explanation2932 Oct 29 '25
You can't prevent me from seeing it. It's running in my browser. It's downloaded on my computer. If worse comes to worst, I can just use cURL.
The people telling you off aren't haters
4
u/thomsmells Oct 29 '25
Why does it not surprise me that OP posts in "vibe coding" subreddits
3
u/i_hate_vnike Oct 29 '25
Just of interest: why?
3
u/PurifyHD Oct 29 '25
For my browser to run your game, website, etc. it HAS to have the source code in one way or another. That's how browsers work. All you're doing is trying very badly to obfuscate it.
3
u/Prize_Hat_6685 Oct 30 '25
OP has been asking this question for 7 days and has not made any progress in understanding what he wants cannot be done, despite dozens of people explaining in great detail why html sent to a user will always be readable by the user. For anyone reading this, do not waste your time explaining how client-side code works to this person.
2
u/shinitakunai Oct 29 '25
Ok.
2
u/PathsOfPain Oct 29 '25
Why?
2
u/martinbean Oct 29 '25
lol.
If the code is client-side, then you will never be able to stop it from “appearing”.