Is there a script out there. Where I can add it to my page, so if someone visits my page from say Chicago. It will not activate that code on my site. I won't to only present certain code on my site to certain areas?
There are sites that gives the option to use API to read information about the IP address of the visitor wich mostly contains COUNTRY, STATE, POSTAL, INET PROVIDER its not just adding a tiny script to your page, its much more than that. And if you use a API you should save the information to your own database coz most API's don't allow lots of requests a day (most accept about 1000 requests a day). try googling with API GEO PHP or something
hello use http://www.maxmind.com/ you download files and run in your server no limited a x queries per day Best