title: How to prevent direct access to the files with CodeIgniter
body: <p>How can prevent direct access to the files like the folders/files in application ?</p>
  
  <p>I see in application folder are files .htaccess and index.html that include :</p>
  
  <p>.htaccess</p>
  
  <pre><code>&lt;IfModule authz_core_module&gt;
  Require all denied
  &lt;/IfModule&gt;
  &lt;IfModule !authz_core_module&gt;
   Deny from all
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;403 Forbidden&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p&gt;Directory access is forbidden.&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>i create a new folder in  a root project directory with name: Customers where will be stored customers PDF files . I paste both files .htaccess and index.html from application to Customers but the PDF files are still able to direct access .</p>
  
  <p>How to make them like application folder files to be able to access only the system ?</p>