Actually, it's not hard to say it.
Here's the principle.
Get visitor IP address-> Query the IP database for relevant information-> Display a component by drawing it (or not drawing it).