weaning from breastfeeding - how to dry up milk?

Any tips on how to prevent my boobs from hurting? I'm trying to wean my LO by the end of the month.