CloudFlare 封号事件
2024
06.03
序章
邮件警告
从 2024 年 6 月 3 日 0 时 47 分开始,陆续收到了来自 CloudFlare 的邮件。看起来是这样的:
大致是在说:CloudFlare 接到了来自 netcraft 的报告,匿名报告者称下述路径涉嫌钓鱼网站
https://gh-proxy.hendrixshen.top/login
https://gh-proxy.hendrixshen.top/session
https://gh-proxy.hendrixshen.top/about.php
https://gh-proxy.hendrixshen.top/about.php7
https://gh-proxy.hendrixshen.top/index.html
https://gh-proxy.hendrixshen.top/search/custom_scopes
其中 https://gh-proxy.hendrixshen.top/login 被认定是网络钓鱼。
后续分别在 2024/6/3 1:13、2024/6/3 2:48、2024/6/3 21:18、 ...
搭建 Hexo 博客
部署方案
此方案需要两个仓库:
源码仓库(私有):Hexo 配置文件以及写作等 原始内容 均在此操作进行,向此仓库 push 后通过 GitHub Actions 部署,并向页面仓库推送。
页面仓库(公开):通过 Hexo 生成的静态文件存储与此,GitHub Pages 检测到仓库更新会自动进行部署。
准备工作
需要 GitHub 账号一个,一台装有 Git、Nodejs 的电脑,脑子,手。
安装 hexo-cli (Hexo 主程序)
1npm install hexo-cli -g
找到合适的目录作为博客根目录,打开 Git Bash 并运行命令:
(此过程会执行 git clone操作, 网络环境不良可能需要多次重试)
1hexo init
当看到 “Start blogging with Hexo!” 时表示 Hexo 已经初始化完成。
启动 Hexo 本地服务端
1hexo server
当看到 “Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.” 时表示 Hexo 本地服务端启动完成,其中 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1$ hexo new "My New Post"
More info: Writing
Run server
1$ hexo server
More info: Server
Generate static files
1$ hexo generate
More info: Generating
Deploy to remote sites
1$ hexo deploy
More info: Deployment