Recommendations for Securing a Web Server

Basic Considerations

A web server is a server that is constantly connected to the Internet. It is therefore advisable to follow the recommendations to secure servers connected to the Internet.

Security Measures

  1. Web servers have the specific function of serving web applications on the Internet. The security level for these applications is often little known or not known at all. It is important to prevent, or limit the scope of damage if they are compromised:
  2. ensure your applications have the maximum possible security by carrying out penetration tests beforehand;
  3. install an application firewall such as Microsoft Forefront, Modsecurity or Naxsi for IIS, Apache and Nginx respectively;
  4. limit the web server application rights – if possible hold it in a restricted execution area;
  5. remember to apply your developers’ best practice.
  6. Some web applications enable downloads of any kind of file onto the server. It is important to test files downloaded in this way using anti-virus software.
  7. If you are using databases on the server itself, consider restricting access to local users.
  8. Think about installing modules protecting against denial of service.
  9. Check your log files regularly for anomalies.

Table of Content