Hide the page's HTML source code

-2

Is it possible to hide the source code of the page? I ask why Twitter seems to use this technique. See:

<!DOCTYPE html>
<html lang="pt">
<head>
  <meta charset="utf-8" />
  <title>Twitter</title>
  <style>
  body {
    background-color: #ffffff;
    font-family: sans-serif;
  }
  a {
    color: #1da1f2;
  }
  svg {
    color: #1da1f2;
    display: block;
    fill: currentcolor;
    height: 21px;
    margin: 13px auto;
    width: 24px;
  }
  </style>
</head>
<body>
    <noscript>      
      <center>Se você não for redirecionado em breve, <a href="/">use este link</a>.</center>
    </noscript>
    <script nonce="+S++B3GsGLtBoFsjmI2+Pg==">
       document.cookie = "app_shell_visited=1;path=/;max-age=5";
       location.replace(location.href.split("#")[0]);
    </script>
</body>
</html>
    
asked by anonymous 01.09.2018 / 11:57

1 answer

1

It is possible to hide relevant parts of the logic behind a page using a server-side language such as PHP. With PHP, for example, you will not be able to see things like the code used to login to a page or the function that gives access to the balance of a bank account. But there will always be some HTML to be displayed in the browser (which are the elements with which the user can intaragir), so some HTML code is always visible.

    
01.09.2018 / 16:09