trying to redirect an entire state from viewing website
<p>I'm trying to send all visitors in the state of NY to a different page but in my logs I still see people from NY in my main page meaning that it isn't working.  Is this configured correctly and is there a php version of max-mind geopip?      </p>

<pre><code>&lt;script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"&gt;&lt;/script&gt;


&lt;script language="JavaScript"&gt;

   var city= geoip_city();
   var state= geoip_region();
   var country= geoip_country_code();


   if(state  == "New York")      
   {
      &lt;!--
      window.location = "gohere.html"
      //--&gt;
   }

   if(city  == "New York")      
   {
      &lt;!--
      window.location = "gohere.html"
      //--&gt;
   }

   else   
   {
   }

&lt;/script&gt;
</code></pre>
