Controlling illegal abandonment is a good way to prevent babies from being abandoned. The police should catch and punish the parents who abandon their babies. Because it is the same as murder. So it has to be strictly controlled. However, it's hard to find and catch the parents because they abandon babies secretly. Therefore, the government should set cameras that track everything everywhere, and warn people that if they abandon their babies, they will be punished intensely.
Allowing abortion legally can prevent babies from being abandoned. There are some countries in which abortion is illegal. So the women who want abortion decide to do dangerous illegal abortion or abandon the babies. So the government should allow abortion. Nevertheless, some people will disagree if the government allows abortion. In this case, the government should persuade women to make their own decisions about their bodies.
Education people to use contraception is the best way to prevent babies from being abandoned. Many people don't know how important contraception is. So the government should educate people to do contraception to prevent unwanted babies. However, some people ignore or don't believe this kind of education. Thus, the government should educate people since they are children.
In conclusion, we can try some solutions to prevent babies from being abandoned even though it is not easy. The government should set cameras that track everything, and warn people to control illegal abandonment. And the government should allow abortion legally and persuade people who