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.

Related Articles

How to Stop and Disable ClamAV Service from CentOS?

We all know that ClamAV scanner is pretty heavy on CPU-Memory resources, and it should be avoided...

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...

How to enable sFTP in a Linux VPS?

The SSH File Transfer Protocol (SFTP), also known as the Secure File Transfer Protocol, enables...

HOW TO INSTALL NEXTCLOUD ON UBUNTU?

Nextcloud is an open-source and secure PHP-based content collaboration platform. It is used for...

How to Protect GRUB with Password in Linux ?

GRUB called as Grand Unified Bootloader is a default Boot loader on Unix OS. In a Linux system,...

  • 0 Users Found This Useful

Was this answer helpful?