Reputation:
how can I hide my website's source code from users? Example is here (we can't click right mouse button): http://www.internetine-tv.narod.ru/
Or if it is immposible maybe can I hide part of code? If i want to hide my embed TV channel's code, can I do that? for now everyone can find It in source code. Thank you for answers.
Upvotes: 1
Views: 1236
Reputation: 1015
You cannot hide the (x)html, css or javascript source code. you can hide your python/php/asp code (just don't allow directory walking) If you are using php or asp (or a different server side language - ie python) you can make it nasty to view and hide some of it - ie all your php code to generate your page doesn't show which you can have if you want to obfuscate the code add junk data which is a nasty thing to do but is the closest thing you can do to hide your html code. HTH
Upvotes: 1
Reputation: 5271
You're looking to disable the context menu, take a look at this Q already on SO - How to disable right-click context-menu in javascript
Put it like this, any information you send to the browser, like an embed code, will be viewable by the user. There aint much you can do about that.
Upvotes: 1
Reputation: 208040
You can't. The best you can do is obfuscate it. In Chrome for example, on the site you gave I can do CTRL+U to view the source.
Upvotes: 2