.htaccess 893 B

12345678910111213141516171819202122232425262728293031
  1. <IfModule mod_authz_core.c>
  2. # Deny files without extension or with specific extensions
  3. <FilesMatch "^[^.]+$|\.(md|sh)$">
  4. Require all denied
  5. </FilesMatch>
  6. </IfModule>
  7. <IfModule mod_mime.c>
  8. AddType font/woff .woff
  9. AddType font/woff2 .woff2
  10. AddCharset UTF-8 .css
  11. AddCharset UTF-8 .svg
  12. </IfModule>
  13. <IfModule mod_expires.c>
  14. ExpiresActive on
  15. ExpiresByType application/json "access plus 1 month"
  16. ExpiresByType font/woff "access plus 1 month"
  17. ExpiresByType font/woff2 "access plus 1 month"
  18. ExpiresByType image/gif "access plus 1 month"
  19. ExpiresByType image/png "access plus 1 month"
  20. ExpiresByType image/svg+xml "access plus 1 month"
  21. ExpiresByType text/css "access plus 1 month"
  22. </IfModule>
  23. <IfModule mod_headers.c>
  24. <FilesMatch "\.svg$">
  25. Header set Content-Security-Policy "default-src 'self'; frame-ancestors 'none'; style-src 'self' 'unsafe-inline'"
  26. </FilesMatch>
  27. </IfModule>