Is there a way to restrict paid users to N number of IP addresses accessing site?

We want to make sure users aren't sharing passwords and not paying. Is there a way for us to restrict access to a certain number of IP addresses within a time period?

Ideally, we would have choice of how many IP's and time frame.

thanks.