ChatGPT says it does not directly scrape websites without permission, but they use a third-party "Common Crawl" for data. Common Crawl is non-profit and makes pretty much any website data available via creative commons attribution for "training" by accessing robots.txt files.