So yea, in order to stop people from glitching through the iron bars, change all iron bars to glass. This will stop them from glitching through it.
How about barriers? I use them for creative and it helps a lot because its like flies trying to get through a window xD