Hardening of a web server

In this section, let's throw some light on common mistakes observed on a web server. We will also discuss some points to harden the web server follows:

  • Always hide your server signature.
  • If possible, set a fake server signature, which can mislead the attackers.
  • Handle the errors.
  • Try to hide the programming language page extensions because it will be difficult for the attacker to see the programming language of the web applications.
  • Update the web server with the latest patch from the vendor. It avoids any chance of exploitation of the web server. The server can at least be secured for known vulnerabilities.
  • Don't use a third-party patch to update the web server. A third-party patch may contain trojans, viruses, and so on.
  • Do not install other applications on the web server. If you install an OS such as RHEL or Windows, don't install other unnecessary software such as Office or editors because they might contain vulnerabilities.
  • Close all ports except 80 and 443.
  • Don't install any unnecessary compiler, such as gcc, on the web server. If an attacker compromised a web server and they wanted to upload an executable file, the IDS or IPS can detect that file. In this situation, the attacker will upload the code file (in the form of a text file) on the web server and will execute the file on the web server. This execution can damage the web server.
  • Set the limit of the number of active users in order to prevent a DDOS attack.
  • Enable the firewall on the web server. The firewall does many things such as closing the port, filtering the traffic, and so on.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.239.166