Hand sanitizer works really well against bacteria and viruses. Hand sanitizer with over 80% ethanol can go in and remove the bacteria and viruses you have on your palms effectively. It is important that there is at least 80% ethanol in the hand alcohol, as otherwise it will not work as effectively.
When using hand sanitizer, it is important that your hands are completely dry. When applying the hand sanitizer to your hands, it is important that you spread it over the entire surface of both your hands and massage it out until your palms are dry again, to get the full effect of the hand sanitizer.