'can not hide X-Powered-By with expose_php
Solution 1:[1]
and I added
Header unset X-Powered-Byto my htaccess file but in did not work either
Depending on which group the X-Powered-By header has been set, you may need to use the always condition (instead of the default onsuccess). For example:
Header always unset X-Powered-By
You can also try removing the header from within PHP itself. For example:
<?php
header_remove('X-Powered-By');
Reference:
Solution 2:[2]
When I tried the in my localhost The Value off didn't work for me instead Off worked for me, looks like its case sensitive
Note: Server Restart Is Necessary
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | MrWhite |
| Solution 2 | RaZoo |

