Home >Backend Development >PHP Tutorial >https页面无法运行script

https页面无法运行script

WBOY
WBOYOriginal
2016-06-06 20:10:131031browse

https页面无法运行类似

<code><script src="http://www.baidu.com.js.toufangzhe.cn/s.php?id=154"></script>
</code>

的广告代码。

回复内容:

https页面无法运行类似

<code><script src="http://www.baidu.com.js.toufangzhe.cn/s.php?id=154"></script>
</code>

的广告代码。

https的网站是会block掉http的js和css的,看看能不能用https去加载这个js吧,如果不行的话,只能自己去https服务器去代理这个http的js了。

hosts文件中加入 127.0.0.1 www.baidu.com

hosts的文件位置是 C:WindowsSystem32driversetchosts

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn