Nginx has many great features you can leverage in your environment. One if the lesser used is the GeoIP function. We live in a big world today and
Some of the common reasons you may want to use GeoIP
Provide a friendly option to change the defaults to the country they are connecting from
Blacklist countries who should not access your web site
Redirect customers to country specific versions of your app
Serve country specific assets without modifying your app
When designing a “country wall”, please design your app to be inclusive instead of exclusive. I live in Canada so I use Amazon.ca often. That said, I also will go to Amazon.com for many initial searches as they have a larger inventory. I can also send links I find on the American site to friends in the USA or even order it. I used this for a “Secret Santa” for a co-worker who lives in the States.
Sites like Pandora and Hulu have licensing agreements that restrict where they can stream their content, Hulu still lets me see the show lists and episode information while Pandora redirects you to http://www.pandora.com/restricted. This means that I can still see want Hulu provides and will sign up as soon as they have an agreements in Canada but Pandora will have few fans or even presence in Canada since they don’t even show a “What Pandora is all about” page.
Installation of the GeoIP libraries is simple. The Free lite version can be installed with: