Governor Sam Brownback signed changes to the state's "Safe Haven Law" into effect today.
Under the new law, Safe Haven locations like fire departments and hospitals can't be forced to give up the name or identity of someone giving up a baby.
The parents also cannot be forced to give any information when leaving the child.
The changes come from a Wichita case earlier this year where a mother abandoned her child at the hospital. The woman was publicly identified by the police when the hospital said it was concerned for her health.
It's unclear whether the new law would have changed the way officials handled the case.
The law still allows a patients identity to be revealed in cases of abuse of other extreme conditions.