TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you prevent users from certain countries from using your web app?

1 pointsby slokaover 5 years ago
I am trying to open a US company from India using Stripe Atlas. They keep stonewalling me with this question ...<p><i>How will you screen for and prevent people in comprehensively sanctioned jurisdictions, namely Cuba, North Korea, Syria, the Crimea region of Ukraine, or Iran from using your app?</i><p>My typical answer is ...<p><i>Our app is only available to people who have a Gmail or Facebook or Github or Twitter account. We believe Gmail&#x2F;Facebook&#x2F;Github&#x2F;Twitter accounts are not available in the above countries. So we cannot have customers from these countries.</i><p>Their reply goes ...<p><i>Thank you. We will update you in a few business days, or possibly up to a week due to a surge in interest.</i><p>And then it&#x27;s back to the same question ... how will you prevent people from certain countries from using your app? This has been going on for two months now.<p>How do you prevent users from certain countries from using your web app?

2 comments

LinuxBenderover 5 years ago
Most Linux distributions have a &quot;GeoIP&quot; package you can leverage. Another option is to pull down the country data from firehol&#x27;s ip-sets [1] and use that in your application. I would suggest asking the people if either of those options is appropriate and get that in writing.<p>[1] - <a href="https:&#x2F;&#x2F;github.com&#x2F;firehol&#x2F;blocklist-ipsets" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;firehol&#x2F;blocklist-ipsets</a>
derrick_jensenover 5 years ago
Blocking Tor and IP ranges might be sufficient. CloudFlare might offer this as a service, but I&#x27;m not sure. I&#x27;d imagine using a third party would legally put you in the clear, but again IANAL
评论 #22383809 未加载