Bad teacher experience on the first day of school

Today my teacher said that us girls should be ashamed of ourselves for wearing such distracting clothing to school and distracting male teachers because they have morals...and that we're lucky that male teachers haven't tried to take advantage of us (this was a female teacher). I'm extremely angered by this. What should I do, do I even have the right to be mad?
(Yes I'm in high school)