In the current era of information technology development, web server security has become a primary concern in maintaining data integrity, confidentiality, and availability. With the emergence of increasingly complex and evolving cyber threats, Intrusion Detection Systems (IDS) play a crucial role in addressing these challenges. In this research, we propose an innovative approach to enhance web server security by implementing an Intrusion Detection System empowered with Machine Learning Algorithms. In the pursuit of enhancing web server security, this research delves into designing an Intrusion Detection System (IDS) empowered by Machine Learning (ML). The foundation of this approach hinges on transparent public datasets, subjected to intensive pre-processing steps such as data cleaning, normalization, and feature selection. After refining, the data steers ML algorithms to discern potential cyber threats from standard patterns. The novel ML-based IDS showcases an ability superior to traditional systems, with the prowess to differentiate between benign and malicious activities. A salient feature of this IDS is its real-time alert mechanism on Telegram, ensuring immediate notification to security teams upon potential breach detection. Comparative results accentuate the model's enhanced accuracy and a significant reduction in false alarms. This study substantiates the utility of ML in elevating cybersecurity measures and paves the way for deeper investigations into advanced web server protective mechanisms.