如何根据访问者的IP地址进行重定向
我需要创建一个登陆页面,通过根据 IP 地址计算出访问者的位置,自动将访问者重定向到网站的正确国家/地区页面。
这是一个 EPiServer 4 站点。您将如何执行此操作?EPiServer 是否内置了此功能?
I need to create a landing page that will automatically redirect a visitor to the correct country page of a website by working out their location from their IP address.
This is an EPiServer 4 site. How would you go about doing this and does EPiServer have this functionality built in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要使用地理定位服务提供商,其中有很多。
然而,让用户选择他们的位置不是更好吗,以免他们通过代理访问,或者暂时度假什么的?
You'll need to use a Geolocation Service provider, of which there are many.
However, wouldn't it be better to let the user choose their location, lest they are visiting through a proxy, or temporarily on vacation or something?
您可以使用 splitterhq
You can use splitterhq