Add config flag to protect read_attribute.