# Disable directory listing
Options -Indexes

# Deny direct access/execution of PHP files in this module.
# PrestaShop loads them via its own bootstrap (index.php?fc=module&module=raty&...),
# never via a direct request to the file itself.
# Composer files (json, lock), configuration (yml), templates (tpl, twig) and translations (xlf)
# are blocked as well - PrestaShop reads them from disk, never over HTTP, and they only reveal
# the module structure.
<IfModule mod_authz_core.c>
    # Apache >= 2.4
    <FilesMatch "\.(php|json|lock|yml|yaml|tpl|twig|xlf)$">
        Require all denied
    </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
    # Apache < 2.4
    <FilesMatch "\.(php|json|lock|yml|yaml|tpl|twig|xlf)$">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>
