Skip to content

Commit afa43f4

Browse files
committed
fix: remove X-Powered-By header
fixes #2
1 parent 75e03ad commit afa43f4

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

runtime/php-72/php.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ extension=redis.so
2828
extension=zstd.so
2929
zend_extension=opcache.so
3030

31+
; Disable the header "X-Powered-By" exposing the installed PHP version
32+
expose_php=0
33+
3134
; This directive determines which super global arrays are registered when PHP
3235
; starts up. G,P,C,E & S are abbreviations for the following respective super
3336
; globals: GET, POST, COOKIE, ENV and SERVER.

runtime/php-73/php.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ extension=redis.so
2828
extension=zstd.so
2929
zend_extension=opcache.so
3030

31+
; Disable the header "X-Powered-By" exposing the installed PHP version
32+
expose_php=0
33+
3134
; This directive determines which super global arrays are registered when PHP
3235
; starts up. G,P,C,E & S are abbreviations for the following respective super
3336
; globals: GET, POST, COOKIE, ENV and SERVER.

runtime/php-74/php.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ extension=redis.so
3333
extension=zstd.so
3434
zend_extension=opcache.so
3535

36+
; Disable the header "X-Powered-By" exposing the installed PHP version
37+
expose_php=0
38+
3639
; This directive determines which super global arrays are registered when PHP
3740
; starts up. G,P,C,E & S are abbreviations for the following respective super
3841
; globals: GET, POST, COOKIE, ENV and SERVER.

runtime/php-80/php.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ extension=redis.so
3333
extension=zstd.so
3434
zend_extension=opcache.so
3535

36+
; Disable the header "X-Powered-By" exposing the installed PHP version
37+
expose_php=0
38+
3639
; This directive determines which super global arrays are registered when PHP
3740
; starts up. G,P,C,E & S are abbreviations for the following respective super
3841
; globals: GET, POST, COOKIE, ENV and SERVER.

0 commit comments

Comments
 (0)