检测VPN的方法

Is there a way to detect VPNs and block them from creating accounts because if there’s a way to do that that’d be nice as it would stop people from using them to circumvent ip bans

2 个赞

There’s no really easy way, specially with the commercial VPNs who have evolved to circumvent the solutions put in place by Netflix, Hulu, etc.

So, if multibillion companies have not managed to effectevily block commercials VPNs, Discourse will not be able.

5 个赞

我在其他论坛上看到的最佳方法是阻止任何未被标记为“住宅 IP”的 IP 地址,我认为他们是通过 Cloudflare 控制面板来完成的。我拥有一台来自 Hetzner 的 RDP,并看到论坛阻止了服务器 IP 访问他们的帖子,并显示 Cloudflare 阻止页面。当我通过 ipinfo.io 检查 IP 时,我看到它已被标记为主机 IP。

没有现成的解决方案。但是,可以检测到 VPN。您需要将登录与第三方 API(例如 IP2Location.io)集成。它会报告 VPN、住宅代理,甚至 IP 地址是否源自数据中心。

我曾遇到过完全相同的问题: trolls 利用 VPN 规避 IP 封禁,并在我的论坛上不断创建新账号。最终,我发现了一个名为 ProxyTracer 的插件,它可以阻止使用 VPN 的用户注册或登录。该插件效果显著,大大减少了我需要处理的骚扰行为。

1 个赞