I've made a quick fix with the .htaccess
from .htaccess
deny from all
and put this file in each dir (exept js and themes - they need to be not protected).
The other way to fix it is to put this code into the main .htaccess file:
from .htaccess
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php