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

https页面无法运行script

WBOY
Release: 2016-06-06 20:10:13
Original
1032 people have browsed it

https页面无法运行类似

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

的广告代码。

回复内容:

https页面无法运行类似

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

的广告代码。

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

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

hosts的文件位置是 C:WindowsSystem32driversetchosts

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template