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 Enable Extended Logging in Exim?

Extended Exim log is helpful in troubleshooting Exim issues on Linux Server. It allows you to add...

How to install Apache on Ubuntu?

Apache is one of the popular web servers. It has many strong features, including dynamic modules,...

How to install ISPConfig on Debian 10?

ISPConfig is an Open-source Hosting Control Panel for Linux. It is used widely as it is free of...

Do you have any limits for setting up Cron jobs or schedule tasks?

Windows Shared Hosting Plans:We do not offer cron jobs in Windows shared hosting plans. Linux...

How to fix su USER Fails With "su: cannot create child process: Resource temporarily unavailable" Error in CloudLinux?

You may face the below error while switching the accounts using su command. su accutest su:...

  • 0 Users Found This Useful

Was this answer helpful?