Description
I'm designing a Node.JS application (more like a full website). The app will send five JavaScript files and will have <script>
tags linking them together.
Question
How can I prevent users and attackers peering and editing my code?
An example would be:
Ctrl + Shift + I
In Devtools, goto Sources, select a file to edit (i.e
index.html
) and write editsPressing Ctrl + S will cause Live editing to occur
I would like to prevent The above example from happening... Is it possible?
Here is what I thought:
I'll create another client side JavaScript file, prevent_keys.js
It will listen for Ctrl + Shift + I.
If it returns
true
(i.e the keys were pressed), it willlog
the keys.
However that won't stop the user from using Devtools directly.