Forum Moderators: coopster

Message Too Old, No Replies

Protect HTML, PHP

         

smartcard

9:48 pm on May 12, 2005 (gmt 0)

10+ Year Member



What is the good tool/solution to protect the php scripts and its html codes, I mean when someone browse my site, they should not see my codes.

ironik

10:03 pm on May 12, 2005 (gmt 0)

10+ Year Member



Your PHP scripts aren't visible to the outside world if they sit on a server that parses the PHP code (as it's compiled and processed by the server)

The html, you can't really hide as it's what your browser needs to read in order to render your page. There might be some sort of 'scrambler' out there, but I've never come across one and it would probably need some sort of compliance from the browser in order to work (maybe in the form of a plugin or something).

electricocean

2:35 am on May 13, 2005 (gmt 0)

10+ Year Member



I think theres a javascript code to block the source code from view... if that helps.

electricocean

ergophobe

11:43 pm on May 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In terms of HTML, what you're asking is a little like an author saying that he wants to make his book so that it's encoded so that nobody can copy it. By its very nature, HTML must be readable by the browser, so any of the HTML obfuscators out there are likely very easy to crack.

Also, probably the only thing on your site that will likely be hard to recreate is the content, which is displayed. HTML isn't that tricky - anyone who can see your site can make a copy, whether they can see the HTML or not.

That leaves the PHP. If you have some amazing proprietary code that is worth a lot of money and you want to sell it, you can use the Zend encoder so that you can distribute it, but people can't easily see the code themselves.