地点特定内容

发布于 2024-09-08 09:38:29 字数 79 浏览 1 评论 0原文

我希望我的网站中的内容根据请求的来源(位置)进行更改。基于 IP 地址进行此​​操作是一个好主意吗?还有其他方法吗?

谢谢 :)

I would like the content in my website to change depending from where the request is coming(location). Would it be a nice idea to do it based on the IP Address? Is there any other way to do it?

Thanks :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

⒈起吃苦の倖褔 2024-09-15 09:38:29

有许多选项可用于处理位置。有 W3C 地理 API(此处讨论浏览器支持),有一个示例 此处使用 Google AJAX API。一些选项及其相对优势的概述是 此处

There's a number of options available for the handling of location. There's the W3C Geo API(discussion of browser support here),there's an example here using the Google AJAX API,. An overview of a number of options and their relative benefits is here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文