Infection with hepatitis B can be prevented by vaccination, where an injection is given which makes the body immune to the virus. It is recommended that all people are given a series of three vaccines over a few months when they are babies to ensure good protection against this virus. However, vaccination only provides 90% protection, it does not completely remove the risk of infection.