Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/423.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何隐藏lionsgate';s的网站?_Javascript_Html_Security_Encryption - Fatal编程技术网

Javascript 如何隐藏lionsgate';s的网站?

Javascript 如何隐藏lionsgate';s的网站?,javascript,html,security,encryption,Javascript,Html,Security,Encryption,我想问你,如何才能像在Lionsgate的网站上那样隐藏源代码: 如果您前往:查看来源: 以下是源代码视图中的代码: <html class="no-js"> <!--<![endif]--> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-

我想问你,如何才能像在Lionsgate的网站上那样隐藏源代码:

如果您前往:查看来源: 以下是源代码视图中的代码:

<html class="no-js">
<!--<![endif]-->

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, minimal-ui, viewport-fit=cover">
    <meta name="apple-mobile-web-app-title" content="">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="google-site-verification" content="_EvDO8qIZmbl1NWIapBahEQsFlFGFPsfJQnLfFXU1To" />

    <!-- <meta property="og:title" content="LIONSGATE" />
    <meta property="og:description" content="Lionsgate is a global content platform whose films, television series, digital products and linear and over-the-top platforms reach next generation audiences around the world." />
    <meta property="og:image" name="Lionsgate" content="/media/images/logo-ogimage.jpg" />

    <meta property="og:url" content="https://www.Lionsgate.com" />    
    <meta property="og:type" content="Entertainment" />
    <meta property="og:site_name" content="Lionsgate.com - Official Company Website" /> -->

    <link rel="apple-touch-icon" sizes="180x180" href="/media/favicon/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/media/favicon/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/media/favicon/favicon-16x16.png">
    <link rel="manifest" href="/media/favicon/site.webmanifest">
    <meta name="msapplication-TileColor" content="#2b5797">
    <meta name="theme-color" content="#ffffff">


    <!-- experimental GTM  -->
    <!-- Google Tag Manager -->
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-T9Q8QNQ');</script>
    <!-- End Google Tag Manager -->
    <!-- //experimental GTM  -->




    <!-- BEGIN Salesforce DMP ControlTag for "http://lionsgate.com" -->
    <script class="kxct" data-id="Kwl-bwdx" data-timing="async" data-version="3.0" type="text/javascript">
        window.Krux||((Krux=function(){Krux.q.push(arguments)}).q=[]);
        (function(){
        var k=document.createElement('script');k.type='text/javascript';k.async=true;
        k.src=(location.protocol==='https:'?'https:':'http:')+'//cdn.krxd.net/controltag/Kwl-bwdx.js';
        var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(k,s);
        }());
    </script>
    <!-- END Salesforce DMP ControlTag -->
<link href="/css/style.0a622347abc8901f65ef.css" rel="stylesheet"></head>

<body>

    <div id="root"></div>
<script type="text/javascript" src="/js/main.0a622347abc8901f65ef.js"></script></body>

</html>

(函数(w,d,s,l,i){w[l]=w[l]||【】;w[l]。推送({'gtm.start':
new Date().getTime(),事件:'gtm.js'});var f=d.getElementsByTagName[0],
j=d.createElement,dl=l!=“数据层”?“&l=”+l:“”;j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(窗口、文档、“脚本”、“数据层”、“GTM-T9Q8QNQ”);
window.Krux | |((Krux=function(){Krux.q.push(arguments)}).q=[]);
(功能(){
var k=document.createElement('script');k.type='text/javascript';k.async=true;
k、 src=(location.protocol==='https:'?'https:':'http:')+'///cdn.krxd.net/controltag/Kwl bwdx.js';
var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(k,s);
}());
正如您所看到的,几乎没有html代码,只有

你们中有人知道我如何用这种方式加密/隐藏代码吗


非常感谢:)

源代码没有隐藏。这是:

我建议你多读一些关于

简言之,他们加载一个将HTML呈现到页面中的脚本,而不是在服务器端呈现HTML。对于react这样的客户端框架,这是一种非常常见的方法


它们没有混淆或隐藏任何内容。

代码未加密您使用的是单页应用程序;所有的工作都是由JavaScript完成的。一般来说,用户在自己的计算机上不能隐藏任何东西。如果你有想要对用户隐藏的信息,不要发送给他们!