Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Location based SEO functions?
I am wondering if there is a way to restrict a website from appearing outside of a given location? A few zipcodes? A specific state? Even a specific country?
3 Answers
- Anonymous10 years agoFavorite Answer
You could do this with a combination of PHP and Google's location services. If your not familiar with PHP, it is a programming language involving conditional if/else Boolean statements. So you could use Google's geolocation within a PHP conditional statement to restrict access contingent upon location.
Google Geolocation :
http://code.google.com/apis/gears/api_geolocation....
PHP manual :
- JakeLv 710 years ago
The Chinese government can do it...
I suspect the best individuals can do is to employ a script on your site that uses the visitor IP address to determine their country, redirecting the undesirables somewhere else, probably best to make it a dead end error page on your site.
You might see what a search for geo IP script brings up.
- Anonymous10 years ago
I can't see the point when there are many people browsing the Net through proxy servers. Nowadays you can't hide.