WordPress中的内容窃取:如果浏览器禁用了JavaScript,则重定向

时间:2019-02-12 14:30:25

标签: javascript wordpress redirect

我在内容窃取者方面遇到了一些严重问题,他们窃取了我的内容并通过广告将其发布在他们的网站上。所以我安装了一个内容保护插件,但是禁用了javascript,盗窃者也有机会窃取我的内容。

我发现代码的安全性很低,但是它不会阻止页面加载,只显示一条消息,因此窃取者还可以使用 crtl + u 查看源代码:

    <div id="noscript" 
         style="position:fixed;
                z-index:999999;
                text-align:center;
                padding:150px;" >
    <h2>Enable JavaScript!</h2>
    <p>Sorry for the inconvenience but you must enable JavaScript in your 
       Browser to visit this site!</p>
    <p>&mdash; The Team</p>
    </div>
    <script type="text/javascript">
    document.getElementById('noscript').style.display="none";
    </script>

如果未启用javascript,是否有人在想一些php代码以重定向到html站点。谢谢。

1 个答案:

答案 0 :(得分:0)

尝试这样

<noscript>
  <meta http-equiv="refresh" content="0;url=noscript.html">
</noscript>