Restricting Access by IP

Hi, version 3.1 here. I am selling courses - some to individuals, some to groups. Individuals purchase using the Paypal Buy-Now button, but for groups, I create a single specific post/page access link that is shared among the entire group. When individuals purchase, I want to restrict them to access from 3 IP's, but for groups, obviously, it needs to be more. Is there any way to accomplish this, or is this a universal setting? Thanks!
Eric
Eric