Network device protection