Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.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
扰乱html的好方法?_Html_Scramble - Fatal编程技术网

扰乱html的好方法?

扰乱html的好方法?,html,scramble,Html,Scramble,我正在我的网页上嵌入我的livestream频道,这样人们只能在那里看到它。但是,如果您查看源代码,您将能够在livestream上看到我频道的URL,并在那里看到我不想要的内容。我想知道是否有办法使它成为人类无法阅读的东西。我尝试了许多html置乱页面,但它们都无法置乱URL 我的嵌入代码如下所示: <iframe width="100%" height="500px" frameborder="no" src="//www.livestream.tv/embed/56576778" s

我正在我的网页上嵌入我的livestream频道,这样人们只能在那里看到它。但是,如果您查看源代码,您将能够在livestream上看到我频道的URL,并在那里看到我不想要的内容。我想知道是否有办法使它成为人类无法阅读的东西。我尝试了许多html置乱页面,但它们都无法置乱URL

我的嵌入代码如下所示:

<iframe width="100%" height="500px" frameborder="no" src="//www.livestream.tv/embed/56576778" style="border: 0 none transparent;"></iframe>

使用我迄今为止尝试过的扰码器,我得到了以下结果:

<script>var U7=window,W8=document;var a1="%3Ciframe%20width%3D%22100%25%22%20height%3D%22500px%22%20frameborder%3D%22no%22%20src%3D%22//www.livestream.tv/embed/56576778%22%20style%3D%22border%3A%200%20none%20transparent%3B%22%3E%3C/iframe%3E";function V0(){var V0;V0=unescape(a1);W8.write(V0);}V0();</script>
var U7=窗口,W8=文档;var a1=“%3Ciframe%20width%3D%22100%25%22%20height%3D%22500px%22%20frameborder%3D%22no%22%20src%3D%22//www.livestream.tv/embed/56576778%22%20style%3D%22border%3A%200%20none%20transparent%3B%22%3E%3C/iframe”;函数V0(){var V0;V0=unescape(a1);W8.write(V0);}V0();
请注意,URL部分仍然是人类可读的。不是很有用,对吧?我知道这个技巧对于电脑向导和精明的用户来说是无用的,但是对于普通用户来说已经足够了,所以我对此很满意。无论是网页还是php函数,我都愿意尝试


谢谢。

您不能使您的URL不可读,因为该URL在SRC属性中将不可用。您的服务器上安装了任何编程语言吗?PHP示例:

embedder.php(可以是html)


iframe.php

<?php
if (!isset($_SERVER["HTTP_REFERER"]) 
    || $_SERVER["HTTP_REFERER"] !== "http://localhost/embedder.php") exit;
header("Location: http://www.livestream.tv/embed/56576778");
?>


当你试图直接访问“iframe.php”时,重定向就不会发生。

你可以
编码
URL,但添加解码后的URL。这正是我想知道的…@Nuker Cristy说的是编码,但在控制台中你会看到解码后的URL。是的,在控制台中你会看到
URL
,但我认为“普通”用户不知道如何使用控制台:DSo iframe.php无法通过在地址栏中键入url来访问?我刚刚尝试了你的方法。很好用,谢谢。
<?php
if (!isset($_SERVER["HTTP_REFERER"]) 
    || $_SERVER["HTTP_REFERER"] !== "http://localhost/embedder.php") exit;
header("Location: http://www.livestream.tv/embed/56576778");
?>