If you think you have been exposed to HIV through condomless anal sex or a broken condom, you can reduce the chances of becoming HIV-positive by taking PEP (post-exposure prophylaxis) – but you need to act quickly. PEP, or post-exposure prophylaxis, is HIV medication given to people soon after they are exposed to HIV to reduce the chances of becoming HIV-positive.