Distributed denial of service attack (DDoS) attack is one of the oldest and most common attacks launched against websites. Nick Sullivan is a systems engineer at CloudFlare, a provider of website acceleration and security services. Recently, he wrote an article introducing how attackers use malicious websites, server hijacking and man-in-the-middle attacks to launch DDoS attacks, and explained how to use HTTPS and the upcoming new Web technology called "Subresource Integrity (SRI)" Technology protects websites from attacks.
Most of the interaction on modern websites comes from JavaScript. Websites implement interactive functionality by adding JavaScript code directly to HTML or by loading JavaScript from a remote location through HTML elements