You can get infected with hepatitis B if you have contact with an infected person's blood or other body fluids. People who are at risk of getting hepatitis B or developing serious complications from it should consider being vaccinated. These groups include:
people who inject drugs or have a partner who injects drugs
people who change their sexual partners frequently
men who have sex with men
babies born to infected mothers
close family or sexual partners of someone with hepatitis B
people whose work puts them at risk of contact with blood or body fluids, such as nurses, prison staff, doctors, dentists and laboratory staff
families adopting or fostering children from high-risk countries
How safe is the hepatitis B vaccine?
The hepatitis B vaccine is very safe. Other than some redness and soreness at the site of the injection, side effects are rare. It's an inactivated (dead) vaccine, so it cannot cause the infection itself.