title: disable iframe embedding for other websites
body: <p>I want to disable iframe embedding pages, from my website to other websites
  and I make this js:</p>
  
  <p><code>&lt;script type="text/javascript"&gt;
      if(document.referrer.indexOf("mydomain.com") != -1) {
          window.location = "http://www.youtube.com/watch_popup?v=oHg5SJYRHA0";
      }
  &lt;/script&gt;</code></p>
  
  <p>Script works, but I have page01.php and page02.php</p>
  
  <p><strong>I want in page01.php source code insert iframe for page02.php</strong></p>
  
  <pre><code>&lt;iframe src="page02.php"&gt;&lt;/iframe&gt; 
  </code></pre>
  
  <p>When I do this I, got redirection to: </p>
  
  <pre><code>http://www.youtube.com/watch_popup?v=oHg5SJYRHA0
  </code></pre>
  
  <p><strong>How to solve this?</strong>
  Thanks</p>