PEP (Post-Exposure Prophylaxis) is an emergency medication that can be taken up to 72 hours after possible exposure, though the sooner it is taken, the more effective it will be. PEP is prescribed as a once or twice-daily pill taken for 28 days. PEP is highly effective in preventing HIV when administered correctly, but it is not 100% effective