by Maro · 2y ago · 0 comments
Another layed of meta-security I like to use for private apps is to use a service like ipapi.co to do an IP->geo lookup, and then have a per-used list of allowed geo regions (usually at the city level), like:
{
"jane@gmail.com": ["New York"],
"john@hotmail.com": ["Clowntown", "Buffoonville"],
...
}
Depending on your user-base, this effectively shuts out 99%+ of the Internet. This geo check is trivial to circumvent if somebody really wants to, but it's good for keeping out 99% of random hackers.