Torrenting and torrent sites are generally legal, but some sites are blocked in certain countries for hosting copyrighted material — downloading and sharing this is usually illegal and you can be prosecuted. It’s also illegal to torrent in a country where P2P downloads are prohibited. In most regions, downloading open-source software and content in the public domain is legal.
My team and I don’t condone illegal torrenting, but knowing how to torrent safely is important. Make sure the torrents you download are copyright-free, and use a VPN to keep your personal data and identity safe from hackers and web trackers on torrent sites.