The best way to prevent Hepatitis B is by getting the Hepatitis B vaccine. The Hepatitis B vaccine series is a sequence of shots and is usually given as 3 shots over a 6-month period that stimulate a person’s natural immune system to protect against HBV.