nginx disable server tokens

By default nginx sends HTTP headers with some information about server version, operating system, etc. These informations can be used by hackers to exploit vulnerabilities. These information can be hidden by adding the following line to the /etc/nginx/nginx.conf file:

After modifying the file you must restart the nginx server.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *