Understanding Spoofing Attacks: Types, Risks, and Prevention