Spoofing Zipcode URL Question
-
Hello,
I was testing out some basic code to get a feel for GEOIP but when I try to spoof the url to think I’m coming from somewhere else it’s not working. It’s still showing my current zip code rather then whats in the url.
<?php $postal_code = getenv('HTTP_GEOIP_POSTAL_CODE'); $michigan_zip_codes = array('49508', '49503'); if (in_array($postal_code, $michigan_zip_codes)) { echo "Welcome to michigan"; } else { echo "Hey you!"; } ?> <pre><code><?php var_dump($michigan_zip_codes); ?></code></pre> <pre><code>Your Zip Code: <?php var_dump($postal_code); ?></code></pre>
Then in the url I’m using this: mydomain.com/?geoip&zip=01610
I did contact WP Engine and they say the buckets are activated so they directed me here. Any help would be appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Spoofing Zipcode URL Question’ is closed to new replies.