360站内搜索导致证书绿锁消失

407次阅读
一条评论

共计 1142 个字符,预计需要花费 3 分钟才能阅读完成。

今天来说说,网站添加 360 搜索后,域名证书小绿锁变成了 预览

该问题所在就是前台引用了 http 资源,后台却没有问题,那么只要把下面这段代码简单修改一下就行了

<style type=”text/css”>#so360{white-space:nowrap}#so360 form{margin:0;padding:0}#so360_keyword{width:250px;height:24px;line-height:24px;font:14px arial;padding:2px 5px;margin-right:5px;border:2px solid #3EAF0E;outline:0;vertical-align:middle;}#so360_keyword{background:url(https://p.ssl.qhimg.com/t01ab1a3fb05f0ee893.png)no-repeat right center;}#so360_submit{width:70px;height:32px;line-height:32px;border:0;color:#fff;background:#3FB30E;font-weight:bold;font:bold 14px arial;padding:0;padding-top:3px\9;cursor:pointer;vertical-align:middle}</style>
<div id=”so360″><form id=”so360form” action=”//www.so.com/s” target=”_blank”><input id=”so360_keyword” autocomplete=”off” name=”q” type=”text” /><input id=”so360_submit” type=”submit” value=” 搜 索 ” /><input name=”ie” type=”hidden” value=”utf-8″ /><input name=”src” type=”hidden” value=”zz_so.com” /><input name=”site” type=”hidden” value=”so.com” /><input name=”rg” type=”hidden” value=”1″ /><input name=”inurl” type=”hidden” value=”” /></form></div>

修改的地方仅仅只有一处,就是把 action="http://www.so.com/s" 改为 action="//www.so.com/s" 即可。找不到可以使用 ctrl+ f 搜索下。

这时候那熟悉的样子就又回来了,看着还是非常舒服的。
360 站内搜索导致证书绿锁消失

正文完
 
评论(一条评论)
google 评论达人 LV.1
2019-07-01 21:19:24 回复

I’m curious to find out what blog platform you’re using?

I’m experiencing some small security issues with my latest website and I would like
to find something more safe. Do you have any solutions?

 Macintosh  Chrome  德国Liberty