Please tell me how to do such things, and perhaps even do them:
1. How to close the Source Code to the user.
2. How to block the URL string (so that the user could not change it)
Please tell me how to do such things, and perhaps even do them:
1. How to close the Source Code to the user.
2. How to block the URL string (so that the user could not change it)
Block viewing of the source code, as well as changing the e-book is impossible.
<body oncontextmenu = "return false;"> - a ban on the context menu (right-click)
Apparently, the third question will be: "How to block the launch of the task manager, registry editor, as well as the boot in safe mode and the keyboard with the mouse."
Admit it, are you writing Trojan.winlock? Just kidding.
But tell me honestly, why do you block the URL string?
By sabzh: you can of course sophistically ban the right click (you can see an example here ), but this will not solve the problem itself. In Opera there is, for example, the magic combination CTRL + U.
[upd] Well, after. Having a little tormented Google, we have the following options:
Encrypt. The best option available. You can write the encoder yourself or take it ready.
Block right click. Problems will not solve at all, but get moral satisfaction.
Do not go online. Heh.
The source code of what you have already sent to the user (HTML / Javascript) cannot be hidden.
You can prevent the string from being modified by creating a new window using the javascript method window.open ('URL of the page', '_blank', 'location = no') . True URL can be either not editable, or even may not be the address bar - depends on the browser.
Source: https://ru.stackoverflow.com/questions/67561/
All Articles