How to block all torrent & P2P traffic on GL-SF1200?

If you update to the latest testing version for your router, you should be able to install Adguard Home, it will let you block all sites, ads and malicious content, but blocking torrent traffic would be harder.