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: What is a good way to block Russian users from using my services?

5 pointsby tuangeekabout 3 years ago

3 comments

LinuxBenderabout 3 years ago
One possible starting point would be to null route their assigned address space. [1] from the firehol repo [2]. This will not block private proxies and VPN&#x27;s. A determined person could easily get around this. This does not include ipv6. ttyprintk brings up a good point in that one could also look at header fields to check for Russian language attributes.<p>[1] - <a href="https:&#x2F;&#x2F;github.com&#x2F;firehol&#x2F;blocklist-ipsets&#x2F;blob&#x2F;master&#x2F;ipip_country&#x2F;ipip_country_ru.netset" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;firehol&#x2F;blocklist-ipsets&#x2F;blob&#x2F;master&#x2F;ipip...</a><p>[2] - <a href="https:&#x2F;&#x2F;github.com&#x2F;firehol&#x2F;blocklist-ipsets.git" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;firehol&#x2F;blocklist-ipsets.git</a>
ttyprintkabout 3 years ago
Looks like this is trending over in SANS as well:<p><a href="https:&#x2F;&#x2F;isc.sans.edu&#x2F;diary&#x2F;rss&#x2F;28392" rel="nofollow">https:&#x2F;&#x2F;isc.sans.edu&#x2F;diary&#x2F;rss&#x2F;28392</a>
ttyprintkabout 3 years ago
Assuming you don’t want to block Russian-speaking people, but Russian-origin connections, use a firewall that updates its mapping of IP addresses to country. Pfsense has such a plug-in. You will definitely want to log outbound block or ignore events.