Protection of flows under targeted attacks