title: Website that recognizes user's location/IP & changes lang. based on that
body: <p>title is pretty clear.</p>
  
  <p>My websites consists of both English-written and Spanish-written versions.
  You can go to the main site, which is in Spanish, by clicking <a href="http://www.chrishonn.com" rel="noreferrer">http://www.chrishonn.com</a> and to the translated version, which is in English, at <a href="http://en.chrishonn.com" rel="noreferrer">http://en.chrishonn.com</a>. At the index of each page there is a link (at the bottom) which allow the user to pass from one site to the other.</p>
  
  <p>However, I was wondering, how do big sites like Google, Yahoo!, and other brands' websites to recognize the user's geographical location/IP so that - depending on that - the site's language is adapted (<em>i.e. you are from China and you visit www.google.com, you'll be redirected to www.google.cn</em>).</p>
  
  <hr>
  
  <p>I have stated on every single page of my website the language:</p>
  
  <pre><code>&lt;meta http-equiv="content-language" content="en"&gt;
  </code></pre>
  
  <p>That example is of course from one of the <a href="http://en.chrishonn.com" rel="noreferrer">http://en.chrishonn.com</a> sites, which are in English.</p>
  
  <p>I hope someone can give me a hand.
  Thank you (if I missed something, please let me know).</p>