title: How to protect ASSETS FOLDER in codeigniter
body: <p>I just wanna protect my assets folder in client side. All of my files can access public. I wanna protect it. I have rules <code>.htaccess</code> like below, any wrong rules there?</p>
  
  <pre><code>RewriteEngine on
  RewriteCond $1 !^(index\.php|assets|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
  </code></pre>