To secure a web server from cyber attacks, ensure regular software updates and patches, implement strong authentication mechanisms, use firewalls and intrusion detection systems, and encrypt data using protocols like HTTPS. Regularly back up data and conduct security audits to identify and mitigate vulnerabilities.