# SSO 是否使用已屏蔽的 IP 地址来阻止注册？

**URL:** <https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475>\
**Category:** SSO\
**Created:** [2020年九月26日 20:15 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475 "2020-09-26T20:15:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2020年九月26日 20:15 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/1 "2020-09-26T20:15:21Z")

</div>

我想我知道答案，但想确认一下这是否是预期行为，而非某种错误（我认为这是预期的）。

简短版：我们的网站使用单点登录（SSO）。主网站负责注册，并通过 SSO 在 Discourse 中授权账户。现在，我们已确保在设置中传递用户的 IP 地址，并且可以通过查看每个用户的“管理”页面来确认这一点。然而，当我们将某个 IP 地址添加到“屏蔽 IP"的阻止列表时，它并不会阻止将来创建或授权账户的尝试。

我猜测 SSO 会绕过该检查，这个说法正确吗？这是否是预期结果？

背景：  
我之所以询问，是因为我们的 moderation 团队目前正额外努力，将那些极其具有破坏性或滥用行为的账户的 IP 地址添加到阻止列表中，但发现这似乎没有起到作用。因此，他们希望我调查一下：他们是否需要继续执行这些步骤，还是可以直接忽略它们（以防“屏蔽 IP"列表对 SSO 设置毫无作用）。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2020年九月27日 14:41 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/2 "2020-09-27T14:41:00Z")

</div>

如果 SSO 控制着谁登录您的网站，那么 Discourse 既无法控制也无法做到这一点。我相当确定，在 Discourse 端阻止 IP 地址没有任何好处，因为另一个服务器控制着登录。

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2020年九月27日 15:21 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/3 "2020-09-27T15:21:41Z")

</div>

是的，这也是我的理解和印象（所以对我来说这是预期的）。

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2020年九月28日 18:31 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/4 "2020-09-28T18:31:05Z")

</div>

[quote=“cpradio, 帖子：1, 主题：165475”]  
当我们在“受屏蔽 IP

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2020年九月28日 20:58 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/5 "2020-09-28T20:58:31Z")

</div>

有意思……我们确实有一个近期注册的账户，其注册 IP 在 8 月 20 日被封禁，但该账户却在 9 月 15 日成功创建。

**已编辑：**  
但随后我在日志中也发现了以下内容，看来它偶尔也能正常工作？

```plaintext
详细 SSO 日志：IP 地址已被封禁 [ip_address_redacted]

add_groups: 
admin: 
moderator: 
avatar_force_update: 
...

```

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2020年九月28日 21:09 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/6 "2020-09-28T21:09:00Z")

</div>

> [@cpradio](#):
>
> 注册 IP 于 8 月 20 日被封锁，但他们于 9 月 15 日成功创建了账户。

可能他们使用了 VPN，或者是在不同的电脑/移动设备上操作？

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2020年九月28日 21:21 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/7 "2020-09-28T21:21:53Z")

</div>

由于存在这个时间间隔，他们可能根本没意识到自己绕过了 IP 封锁。

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2020年九月29日 01:22 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/8 "2020-09-29T01:22:29Z")

</div>

啊，我想我明白是怎么回事了。我们有一个名为“注册 IP

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2020年十月29日 01:31 UTC](https://meta.discourse.org/t/does-sso-make-use-of-screened-ip-addresses-to-block-registrations/165475/9 "2020-10-29T01:31:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
