如何使用WAF控制当前在website首页停留的用户?
1,每个进入首页的用户增加首页用户在线计数,到达阈值时候禁止新的用户访问首页。
2,用户离开首页,关闭浏览器或者登陆系统后减少首页用户在线计数。如有其它情况未能减少计数,系统会在1小时候自动剔除该用户。
3,可以实时统计当前停留在首页的用户数。
Aside from rate limits, the WAF is stateless so cannot do this sort of task. It is probably best implemented on your server or you could write a Worker with durable objects to implement it.
The closest direct Cloudflare feature would be the waiting room…
1 Like
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.