These days when I look for a specific eBook I'll often check the author's and publisher's websites first, and see if it's available from them directly. Or if they have a preferred source.
Here are some places I've bought, borrowed, or otherwise legally acquired e-books from: https://kvibber.com/reviews/books/finding-ebooks/

