defending at layer seven against layer nine attacks