innhold/custom/.htaccess
Ruben 7e44e7e132 Add CSRF protection and rate limiting to contact form
Improve contact form styling with dedicated CSS file Move contact form
styles from base.css to separate file Add security measures to custom
directory with .htaccess Update honeypot field styling and
implementation
2025-11-04 22:33:14 +01:00

10 lines
255 B
ApacheConf

# Deny access to all files in custom directory
# Only allow access through PHP includes
<Files "*">
Require all denied
</Files>
# Allow access to CSS and font files
<FilesMatch "\.(css|woff|woff2|ttf|eot|svg)$">
Require all granted
</FilesMatch>