The best way to protect yourself from HIV is by getting tested for HIV and STDs regularly, knowing your status, and using protection like condoms or dental dams. You can also consider using PrEP, an HIV prevention medication, to reduce your risk of getting HIV by 90% or more.