This book covers the fundamental principles in Internet Security. Via hands-on activities, the book aims to help readers understand the risks on the Internet, how various attacks work, what their fundamental causes are, how the countermeasures work, and how to defend against them in programs and systems.