Squid Redirection for particular IPs only - squid

This is a discussion on Squid Redirection for particular IPs only - squid ; Hello,
Redirection is working perfectly in my squid setup. Need to use the
redirection for some particular IPs only.
Can it be done through the perl program itself. Like if the redirector
..pl gets the IP address of the user ...