title: Will changes on the hosts file affect iframes loading on remote computers?
body: <p>Consider this:</p>
  
  <p>facebook.com - IP: 1.1.1.1
  My server's IP: 2.2.2.2</p>
  
  <p>On my server, if put this on my /etc/hosts file:</p>
  
  <pre><code>2.2.2.2 facebook.com
  </code></pre>
  
  <p>And try to access facebook.com on my server, instead of loading facebook.com from Facebook's servers, the browser will try to find facebook.com on my server.</p>
  
  <p>This is a local setup.</p>
  
  <p>Now let's say I host a page on my server with the following line:</p>
  
  <pre><code>&lt;iframe src="http://facebook.com/" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>If I try to access this page from my server, the browser will try to find the domain on 2.2.2.2, because of the hosts file. </p>
  
  <p>Now, if a user with an untouched hosts file access this same page, will their browser load facebook.com from 1.1.1.1, or from 2.2.2.2?</p>
  
  <p>Server is using Apache 2.4, CentOS 6.5.</p>