闲者博客 - 强制 https://bk1314.com/tag/%E5%BC%BA%E5%88%B6/ zh-CN Thu, 14 Apr 2022 18:01:43 +0800 Thu, 14 Apr 2022 18:01:43 +0800 关闭浏览器输入http强制跳转到https[适合谷歌内核的 一般都是比如360浏览器] https://bk1314.com/64.html https://bk1314.com/64.html Thu, 14 Apr 2022 18:01:43 +0800 飞鱼 关闭谷歌浏览器默认跳转https

浏览器地址输入:

chrome://flags/

然后搜索:

Omnibox Updated connection security indicators
然后 这个选择disabled 重启浏览器就好了
]]>
0 https://bk1314.com/64.html#comments https://bk1314.com/feed/tag/%E5%BC%BA%E5%88%B6/
PHP强制性文件下载 https://bk1314.com/41.html https://bk1314.com/41.html Fri, 25 Feb 2022 18:54:59 +0800 飞鱼 <?php /** *@param $file - path to file */ function force_download($file) { if ((isset($file)) && (file_exists($file))) { header("Content-length: " . filesize($file)); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . $file . '"'); readfile("$file"); } else { echo "No file selected"; } } ?> ]]> 0 https://bk1314.com/41.html#comments https://bk1314.com/feed/tag/%E5%BC%BA%E5%88%B6/