# Dr. Agro - uploads públicos de imágenes
Options -Indexes

<IfModule mod_mime.c>
    AddType image/jpeg .jpg .jpeg
    AddType image/png .png
    AddType image/gif .gif
    AddType image/webp .webp
</IfModule>

<IfModule mod_authz_core.c>
    <FilesMatch "(?i)\.(?:jpe?g|png|gif|webp)$">
        Require all granted
    </FilesMatch>

    <FilesMatch "(?i)\.(?:php|php[0-9]?|phtml|phar|cgi|pl|py|sh|bash|bat|cmd|exe|com|js|html?|svg|htaccess)$">
        Require all denied
    </FilesMatch>
</IfModule>

<IfModule !mod_authz_core.c>
    <FilesMatch "(?i)\.(?:jpe?g|png|gif|webp)$">
        Order allow,deny
        Allow from all
    </FilesMatch>

    <FilesMatch "(?i)\.(?:php|php[0-9]?|phtml|phar|cgi|pl|py|sh|bash|bat|cmd|exe|com|js|html?|svg|htaccess)$">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
</IfModule>
