Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Fero, </p> <p>Your question doesn't make much sense. The "View Source" is showing the HTML source—if you encrypt that, the user (and the browser) won't be able to read your content anymore.</p> <p>If you want to protect your PHP source, then there are tools like <a href="http://www.zend.com/products/guard/" rel="noreferrer">Zend Guard</a>. It would encrypt your source code and make it hard to reverse engineer.</p> <p>If you want to protect your JavaScript, you can minify it with, for example, <a href="http://developer.yahoo.com/yui/compressor/" rel="noreferrer">YUI Compressor</a>. It won't prevent the user from using your code since, like the user, the browser needs to be able to read the code somehow, but at least it would make the task more difficult.</p> <p>If you are more worried about user privacy, you should use <a href="http://en.wikipedia.org/wiki/SSL" rel="noreferrer">SSL</a> to make sure the sensitive information is encrypted when on the wire.</p> <p>Finally, it is technically possible to encrypt the content of a page and use JavaScript to decrypt it, but since this relies on JavaScript, an experienced user could defeat this in a couple of minutes. Plus all these problems would appear:</p> <ul> <li>Search engines won't be able to index your pages... </li> <li>Users with JavaScript disabled would see the encrypted page</li> <li>It could perform really poorly depending the amount of content you have</li> </ul> <p>So I don't advise you to use this solution. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload