Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor busuanzi #472

Closed
3 tasks done
Lruihao opened this issue Jul 25, 2024 · 0 comments
Closed
3 tasks done

refactor busuanzi #472

Lruihao opened this issue Jul 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request tested Processing completion test passed
Milestone

Comments

@Lruihao
Copy link
Member

Lruihao commented Jul 25, 2024

TODO list

Why do this?

不蒜子是一个很好的网站计数器,但是它的缺点也很明显:

  • 不蒜子速度慢,不稳定,经常会出现 502 错误。
  • 不蒜子的代码已经过时,使用的是 Referrer 方法进行统计,这种方法在移动端 / Firefox / Safari 上统计不准确。1
  • 不蒜子的代码使用的是 JSONP 回调,这种方法容易受到 CSRF 攻击,威胁网站安全。2

How to upgrade?

移除 params.ibruce 配置,新增 params.busuanzi 配置,格式如下:

# FixIt 0.3.10 | NEW Busuanzi count
[params.busuanzi]
  # whether to enable busuanzi count
  enable = false
  # busuanzi count core script source. Default is https://vercount.one/js
  source = "https://vercount.one/js"
  # whether to show the site views
  siteViews = true
  # whether to show the page views
  pageViews = true

Footnotes

  1. 不蒜子在 Safari 中计数异常

  2. JSONP

@Lruihao Lruihao added the enhancement New feature or request label Jul 25, 2024
@Lruihao Lruihao self-assigned this Jul 25, 2024
Lruihao added a commit to hugo-fixit/docs that referenced this issue Jul 28, 2024
@Lruihao Lruihao added this to the v0.3.x milestone Jul 28, 2024
@Lruihao Lruihao added the testing Processing completed to be tested label Jul 30, 2024
@Lruihao Lruihao added tested Processing completion test passed and removed testing Processing completed to be tested labels Aug 6, 2024
@Lruihao Lruihao closed this as completed in 7c67b90 Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tested Processing completion test passed
Projects
Status: Done
Development

No branches or pull requests

1 participant