.htaccess.dist 526 B

123456789101112
  1. # Copy this file to `.htaccess` for additional root-level protection
  2. # if you cannot set Apache `DocumentRoot` to `./p/` as recommended.
  3. # Deny files starting with a dot or without extension or with specific extensions
  4. <FilesMatch "^\.|^[^.]+$|\.(config\.js|gz|md|neon|sqlite|xml|ya?ml|zip)$">
  5. Require all denied
  6. </FilesMatch>
  7. # Deny some sub-folders, which may not be excluded by their own .htaccess
  8. <If "%{REQUEST_URI} =~ m#(?<!/p/scripts)/(bin|data|extensions|node_modules|vendor|\..+)(/|$)#">
  9. Require all denied
  10. </If>