javascript - How to hide source code from public view -
how hide source code public view in php, asp.net , javascript.
i have seen many cms , other website source hidden public view, wordpress config.php, whmcs configuration.php, , more files hidden, inside have code when check in browser view source display none.
how in php , asp.net or javascript.
i found article here
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. isn't there hope?
the bottom line browsers need see unencrypted, plain text source code create webpage. reason, it's impossible hide html source code. if browser can read it, needs able render webpage, can user. that's bottom line. page stolen!
a lot of people after having website pirated. know it's cruel in few minutes can steal hours of work, hiding source code can't you. contacting person in question , asking them take down solves many cases. otherwise, contact web host or person's isp , explaining situation course of action. can't give legal advice, if feel copyrights being infringed, can contact lawyer. hiding (or "encrypting") source, won't of @ all. bottom line
unfortunately, short answer question is, can't. there have been various methods put forth, of these circumvented. in end, sure fire way make sure no 1 can steal source code never put on internet @ all.
Comments
Post a Comment