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 Manage Linux VPS (SSD and Traditional) From Client Area?

This article will assist you to manage your Linux VPS (SSD and Traditional) from client area...

How to run ClamAV scan from SSH in cPanel server?

In this article, we'll discuss how to run ClamAV scan via SSH in cPanel/WHM server. ClamAV is one...

How to use gzip in Linux?

Linux has many commands line tools to compress/decompress files and gzip is one of them. In this...

How to Check Bandwidth Usage from WHM Panel?

Within WHM (Web Host Manager), you can check the bandwidth usage of each website hosted. Here are...

How to change Magento site URL from phpMyAdmin?

Magento is a widely used E-commerce store management system. In this article, we will show you...