internet explorer - can i hide the html source code from the browser view source? -
this question has answer here:
i want know can hide source code(special html page) browsers.viewsource ? if yes how ?
, if no other way secure page code ?
no cant that.it impossible hide html.
you can read this give other alternatives secure page.
source code padding
really, oldest trick in book. involves adding ton of white space before start of code view source menu appears blank. however, must people notice scroll bars , scroll around find code. pointless , silly method is, there still use it.
no right click scripts
these scripts stop users right-clicking, "view source" function located. cons: notoriously hard working across browsers , work properly. right-click menu, or context menu, includes many helpful tools users, including navigation buttons , "bookmark page" button. users don't take kindly having browser functionality disabled , inclined not revisit such pages. view source function available through top menu. @ main menu bar @ top of browser, select view, , in sub-menu, you'll see "view source" or similar. also, there keyboard shortcuts ctrl+u can used view source. method add 2 second delay trying view source , irritate users aren't trying view source.
"javascript encryption"
this far popular way try hide one's source code. involves taking code, using custom made function "encrypt" somehow, , putting in html file along function decrypt browser. user able view source, however, isn't understandable. cons: website usable users javascript enabled. rules out search engines, users who've chosen disable javascript, , users using textual browser (such blind) doesn't have javascript capabilities. remember, javascript luxury, not necessity on web. have include means of decrypting page browser can display it. understands javascript can decrypt page. many browsers provide alternative ways around this. allow save page, decrypted easy viewing later. others, firefox, include tools dom inspector, allows view , copy xml of page, decrypted.
html protection software
there less honest people want sell software , conveniently "protect" source code. type of software employs above methods, in varying ways, hide source code. many people think if buying it, must work. doesn't. we've seen, above methods circumvented, , software implement these horribly flawed methods , take money. don't fall them, i've yet see single 1 that's worked, , never will.
copied content if in case link goes dead in future.
Comments
Post a Comment