Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide X-Powered-By (nginx)

Tags:

security

nginx

So is there any way to hide X-Powered-By on Nginx?

like image 715
user68982 Avatar asked Jun 07 '09 16:06

user68982


People also ask

How do you hide X-powered-by?

To remove the X-Powered-By header, you can use: <? php header_remove( name: 'X-Powered-By' ); As you can see, you only have to pass the header name as a string as parameter, and you are done.


1 Answers

proxy_hide_header X-Powered-By; 
like image 119
ylh1223 Avatar answered Oct 05 '22 13:10

ylh1223