title: How to redirect to error page if iframe is used by other domain to show my Website
body: <p>Recently my websites content is being stolen by lots of other websites.</p>
  
  <p>What they do is just create an iframe of my website and show specific data on their domain to get high traffic. When I found out, I tried to block it with <code>htaccess</code> and <code>meta</code> tags.</p>
  
  <p>My webpage that they abuse is an html page which contains an iframe from a subdirectory. 
  They don't use that iframe instead they target other contents of html page but my technique to block does not work in Firefox and it blocks my iframe also. It works fine in Google Chrome and Internet Explorer.</p>
  
  <p>My <code>.htaccess</code> settings - works on Firefox but not on Google chrome and Internet explorer, and also it doesn't show my iframe from same domain:</p>
  
  <pre><code>Header set X-Frame-Options DENY
  Header always append X-Frame-Options SAMEORIGIN
  </code></pre>
  
  <p>My Meta settings - this works on all browser except Firefox:</p>
  
  <pre><code>&lt;meta http-equiv="X-Frame-Options" content="deny"&gt;
  </code></pre>
  
  <p>I have done this temporarily to block my content to use on other websites. 
  I want something like a redirect to my custom page, or when user click inside frame it redirects. Any better ideas are welcome.</p>