Adds validation to the X-FORWARDED-FOR header field.