Protect website folders by .htaccess

<IfModule dir_module> DirectoryIndex index.html index.php index.php4 index.php3 index.cgi index.pl index.htm index.shtml index.phtml </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !(css) RewriteCond %{REQUEST_URI} !(js) RewriteCond %{REQUEST_URI} !(images) RewriteCond %{REQUEST_URI} !(videos) RewriteCond %{REQUEST_URI} !(cache) </IfModule>