mac007 Posted September 24, 2008 Share Posted September 24, 2008 hello, all: I design web pages and was wandering if there is a way so that one can show a design or a web-page, but the html code (or all respective image files, css, etc) can't be viewed or downlaoded from a browser?? I thought maybe thru php one could do that. I believe one can per example have images appear on browser but have it parsed thru php in a way that they couldn't be dragged-copied, or copy pasted into desktop or other application from a browser... In other words, be able to protect content. Thanks, appreciate any feedback! Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/ Share on other sites More sharing options...
AndyB Posted September 24, 2008 Share Posted September 24, 2008 Apparently, your understanding of the internet isn't quite up to par. If stuff couldn't be downloaded to a user's computer, it couldn't get into their temp internet files and their browser would never be able to show anything. If you want to keep stuff 'protected', never put it on the internet. If I can see it, I can copy it. Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/#findComment-649144 Share on other sites More sharing options...
DarkWater Posted September 24, 2008 Share Posted September 24, 2008 No. How's that for a "short and sweet" answer? Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/#findComment-649147 Share on other sites More sharing options...
mac007 Posted September 24, 2008 Author Share Posted September 24, 2008 well, not sure if I made myself clear... or maybe it's not possible, but per example, in Flash you can have a page "setup" so that nothing can be copy-pasted (even simple text), and one cant have access to the actual workings of the original code of the flash file, which is great, cause people cant really 'steal' it. In a somewhat different manner, php itself does same thing, it does all this stuff behind the scenes where user never sees actual code, since it never makes it into their browser, making it virtually impossible for code to be stolen from within the browser. And, if I am not mistaken, images shown on a page can be made harder to be copied from browser by being parsed in a certain way thru php... So that was simply my question... if there was a way to parse html in a certain way thru php so that it would be made impossible to have code "viewed" in a browser (or downloaded for that matter). Maybe there just isnt a way...? Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/#findComment-649153 Share on other sites More sharing options...
DarkWater Posted September 24, 2008 Share Posted September 24, 2008 Nope. Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/#findComment-649155 Share on other sites More sharing options...
Prismatic Posted September 24, 2008 Share Posted September 24, 2008 I can write you a script that converts images to pure html, though your pages tend to be several hundred megs Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/#findComment-649159 Share on other sites More sharing options...
mac007 Posted September 24, 2008 Author Share Posted September 24, 2008 Ok, now you guys are getting pretty nasty.. ha ha, you mean you gonna convert my images into binary data!! allright, allright, I give up on this topic! Thank you all for your feebdback Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/#findComment-649168 Share on other sites More sharing options...
AndyB Posted September 24, 2008 Share Posted September 24, 2008 So that was simply my question... if there was a way to parse html in a certain way thru php so that it would be made impossible to have code "viewed" in a browser (or downloaded for that matter). The server php code is parsed into html which is downloaded to the browser's interpreter and displayed as rendered html code. Nobody ever sees the actual php that generated the html, so the "code" is never seen in the browser. Is that halfway to the answer you wanted? Link to comment https://forums.phpfreaks.com/topic/125552-is-there-a-way-to-hide-html-code-so-doesnt-get-viewed-or-downloaded-from-brows/#findComment-649169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.