It'll only work for the live php site as the TPL's are parsed in real time.
It won't work for your static HTML catalog pages, and the code may result in the tracking code not being added to the static pages at all if you run the html catalog generator from a blocked IP.
We will however build in an IP array in the next release as it's certainly a neat feature.