it's getting tricky to block p2p file sharing.
depends on the p2p software, you can restrict it by protocol/port number and/or rate limiting.
however, i found there is a form of p2p software that will tunnel all traffic within https. with this scenario, i guess rate limiting is the only way.