Use piwik with htaccess to change page access?

Hi, sorry if this has been posted before. I could not find the exact answer to this: I am trying to limit access to a certain webpage to a number of visits per IP address, after which the visitor is redirected to a different page. It is not clear to me if I can use piwik to track individual IPs and change their access with htaccess as a function of the number of their visits. The posts I’ve seen here deal with general statistics. Please help! Thanks