Better x-forwarded-for detection