Preventing proxy loops