Twitter-Block-Porn icon indicating copy to clipboard operation
Twitter-Block-Porn copied to clipboard

短时间内屏蔽多次时提示用户隔天再操作,记录上一次屏蔽时间。

Open daymade opened this issue 2 years ago • 0 comments

目前的一键拉黑方式没有限流,单个列表加上加急名单共有一百来个账号,点击一次"一键拉黑"按钮会造成瞬间发起一百多个请求。

这种方式目前是安全的,但有潜在风险,尤其是当用户短时间内多次点击多个列表批量拉黑时,从实际经验来看,大概超过500个后会被Twitter强制登出账 号,重新登录后可继续正常使用Twitter。

推特限流文档: https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status

对单个用户来说,推特的拉黑接口的限流窗口是 1 天, 期间只允许 400 次操作。

twitter 并没有在文档中写明 block 的限制,但是在 twitter community 中有人提到了这个问题,twitter 官方回复是:

Block rates are not listed on this page, but you might expect that it might be similar to the follow limit.

而 https://help.twitter.com/en/rules-and-policies/twitter-limits 页面写明了 Following (daily): The technical follow limit is 400 per day.

daymade avatar Sep 26 '23 16:09 daymade