Also all GET/POST variables that expect a integer from user-input (url or form submission), should always be wrapped with intval(). This is because it filters out potentially malicious code, and delivers a real integer.
somesite.com/torrents-details.php?id=5guys
Intval filters and returns:
somesite.com/torrents-details.php?id=5
Additionally, anyone can run a for loop on a torrent index and collect all of the IDS and store them in a array and then mass-download them all from any account. This produces abuse. Encrypted links are the way to deal with this.
The problem ?id=5, 6, 7, 8, 9, etc