Harden Project 01 public endpoints
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
<Directory /var/www/html>
|
||||
AllowOverride All
|
||||
Options -Indexes
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<FilesMatch "^\.">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
<FilesMatch "(^|/)(setup_database\.sql|README\.md)$">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header always set X-Frame-Options "SAMEORIGIN"
|
||||
Header always set X-Content-Type-Options "nosniff"
|
||||
Header always set Referrer-Policy "strict-origin-when-cross-origin"
|
||||
</IfModule>
|
||||
|
||||
ServerName localhost
|
||||
|
||||
Reference in New Issue
Block a user