# 首页点击计数器及按IP地址或用户划分的页面生成时间报告

**URL:** <https://meta.discourse.org/t/report-for-top-page-hit-counter-and-page-generation-time-per-ip-address-or-user/248042>\
**Category:** Data & reporting\
**Created:** [2022年十二月6日 20:05 UTC](https://meta.discourse.org/t/report-for-top-page-hit-counter-and-page-generation-time-per-ip-address-or-user/248042 "2022-12-06T20:05:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)\
**Post date:** [2022年十二月6日 20:05 UTC](https://meta.discourse.org/t/report-for-top-page-hit-counter-and-page-generation-time-per-ip-address-or-user/248042/1 "2022-12-06T20:05:15Z")

</div>

您好，在我管理的非 Discourse 大型论坛上，当出现网站性能问题时，查看此报告非常有用：

 ![Screenshot from 2022-12-06 14-41-16](https://global.discourse-cdn.com/meta/original/4X/b/6/0/b605f125721c3e1df42ff79515008799ca3f55b8.png)

网站经常会受到恶意爬虫/抓取器的攻击，导致服务器瘫痪，可以通过 [abuseipdb.com](http://abuseipdb.com) 检查 IP 地址，确认其为恶意代理而非合法爬虫。有时注册用户也会进行一些占用服务器资源的活动，此报告也有助于识别问题来源。是否可以使用 Discourse [Data Explorer](https://meta.discourse.org/t/32566?silent=true) 插件创建类似的功能？

---

<div class="post-metadata">

**Author:** ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)\
**Post date:** [2022年十二月6日 20:19 UTC](https://meta.discourse.org/t/report-for-top-page-hit-counter-and-page-generation-time-per-ip-address-or-user/248042/2 "2022-12-06T20:19:25Z")

</div>

> [@rahim123](#):
>
> 是否可以使用 Discourse [Data Explorer](https://meta.discourse.org/t/32566?silent=true) 插件创建类似的东西？

当然，我认为这会非常适合。例如，[Data Explorer](https://meta.discourse.org/t/32566?silent=true) 插件默认提供了一些查询，例如 `Most Active Lurkers`（最活跃的潜水者）。

> 活跃用户但没有发帖且阅读时间过长，它接受一个 post\_read\_count 参数来设置已读帖子的阈值。

或者

`User Participation Statistics`（用户参与统计）

> 最活跃用户的详细统计数据。

当然，这可以根据您的具体用例进行调整……或者您可以编写自定义内容来满足您的需求。

---

<div class="post-metadata">

**Author:** ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)\
**Post date:** [2022年十二月6日 21:03 UTC](https://meta.discourse.org/t/report-for-top-page-hit-counter-and-page-generation-time-per-ip-address-or-user/248042/3 "2022-12-06T21:03:52Z")

</div>

啊，谢谢，我不知道它自带了现成的查询。
