Web scraping itself is not illegal because it involves gathering data that is often already available. However, web scraping can be used for illegal and unethical purposes, such as content scraping, which involves stealing others’ content.