Is this illegal?

I went to interview at a daycare today and it’ll be working with one year olds, I told the interviewer I was pregnant and she closed her book and said we don’t hire anyone over 6 weeks pregnant and with me obviously showing already I said I’m about 17 weeks. She said oh yeah I’m sorry but we don’t hire anyone like that, oh we aren’t discriminating we just don’t want you to get hurt. How do I get hurting sitting on the floor with one year olds?