Where I grew up, receiving a yearly copy of the physical white and yellow pages was just part of the monthly fee for having a landline phone as far as I remember. I vaguely remember that opting out, via (I believe) a mail-return postcard, was also possible towards the end of physical phone books and granted some discount.