Skip to content

Commit

Permalink
hide nginx version from response headers (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
marjatech authored Aug 2, 2024
1 parent 130a6ba commit 2739a8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/files/etc/nginx/includes/misp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ add_header X-Permitted-Cross-Domain-Policies "none" always;
add_header X-Robots-Tag "none" always;
add_header X-XSS-Protection "1; mode=block" always;

# remove X-Powered-By, which is an information leak
# remove X-Powered-By and nginx version, which is an information leak
fastcgi_hide_header X-Powered-By;
server_tokens off;

location / {
try_files $uri $uri/ /index.php$is_args$query_string;
Expand Down

0 comments on commit 2739a8c

Please sign in to comment.