sourceboat / docker-laravel

A highly opinionated docker image which aims to be perfectly suited to run our Laravel applications.
MIT License
10 stars 2 forks source link

Idea: remove version headers #27

Closed PKuebler closed 4 years ago

PKuebler commented 4 years ago

Hide the PHP and Nginx version headers to slow down a possible attack.

current response headers: X-Powered-By: PHP/7.4.6 Server: nginx/1.16.1

hingew commented 4 years ago

https://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens https://www.php.net/manual/en/ini.core.php#ini.expose-php