title: How to stop someone from accessing a file outside an iframe?
body: <p>I´m using an iframe to show an one course on my page. </p>
  
  <p>The files for the online course is located in <a href="http://www.domain.com/coursefiles" rel="nofollow">http://www.domain.com/coursefiles</a> and the iframe looks like this:</p>
  
  <pre><code>&lt;iframe src="http://www.domain.com/coursefiles/index.php" width="100%" height="670"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Now, does anyone know any htaccess command on how I can deny direct access to the course folder, but let the users only access it trough the page with the iframe?</p>
  
  <p>"sorry for the bad english" :)</p>