Firefighters have stopped the spread of a bushfire near Gembrook, east of Melbourne.

More than 50 firefighters are battling the blaze in Bunyip State Park and are expected to contain the fire overnight.

The blaze, was earlier out of control and travelling north from the Tonimbuk Road area towards Burgess Road, near the Four Brothers Rocks recreation site.

It has so far burned through 24 hectares of land.