When packing toiletries, you’ll want to be sure they’re kept separate from your clothes in a special bag or case. It doesn’t have to be anything fancy — a Ziplock baggie will do — but this will prevent the leaking of liquid onto your clothing items.
Additionally, you can place a small piece of cling-wrap between the bottles and lids of your liquids to prevent leakage.
If you’re bringing them in your carry-on, you’ll want to be sure you’re adhering to the 3-1-1 rule (use 3 oz containers max, in 1 quart-sized bag, with one bag per traveler) in order to pass easily through security.