How do you fast as a woman?

I keep hearing about cortisol/hormonal spikes due to fasting. Can someone clarify what the best way to fast is for someone who is also trying to balance their hormones?