Htaccess File

exponentcms/exponent-cms/master/tmp/img_cache/.htaccess

# secure directory by disabling script execution
AddHandler cgi-script .php .php3 .php4 .phtml .pl .py .jsp .asp .htm .html .shtml .sh .cgi
Options -ExecCGI

<Files *>
    order deny,allow
    deny from all
</Files>

<FilesMatch ".(jpeg|jpg|JPEG|JPG|png|gif)$">
    order deny,allow
    allow from all
</FilesMatch>

<FilesMatch ".(php|phps|pl|py|jsp|asp|htm|html|shtml|sh|cgi|txt)$">
    ForceType text/plain
</FilesMatch>
Exit mobile version