How to Hide Your NGINX Server Version.

Sometimes hackers target your server with a technic called banner grabbing. Usually, banner grabbing is used for vulnerability assessment of the server by scanning your server for running services, open ports, and other information on the server. Hiding your server version will surely protect your server from such scanning tools and it will be hard to determine the vulnerability of the server without knowing the webserver version.

  1. You can check the nginx server version by executing the below command.

    curl --head domain.com	
    version

  2. To hide the nginx version, Open the nginx configuration file using the below command.

    nano /etc/nginx/nginx.conf	
  3. Now add the following line as shown in the below image in the config file and save using ctr+x button.

    server_tokens off;	

      That’s it now the nginx version information will be hidden and thus it will make your server more secure.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to install Virtualmin/Webmin control panel in CentOS 7?

Please refer to the following steps to install Virtualmin/Webmin on Centos 7.x Let us update...

What if I exceed the bandwidth limit I am assigned with VPS?

Our system continually monitors the bandwidth usage of all our VPS. In case if your total monthly...

How to Manage Linux Cloud VPS From Client Area?

This article will assist you to manage your Linux Cloud VPS from client area (though you will...

How to Install Visual Studio Code on CentOS 7?

Visual Studio Code is a Microsoft Product and an open-source cross-platform code editor. It...

How to configure Exim outgoing IP address from WHM?

By Default, All the outgoing emails from the Exim will be sent from the server’s primary IPv4...