Order deny,allow
Deny from All

<FilesMatch "(^(((index\.php)?)|(generate\.php))$)|(\.(png|css|js))$">
        Allow from All
</FilesMatch>