根据国家/地区的访客重定向 [英] visitors redirection according to country

查看:250
本文介绍了根据国家/地区的访客重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html.i有一个网站只想来自美国和美国的访客加拿大。

其他访问者需要重定向到错误页面。



假设访问者来自美国/加拿大登陆我网站上的网址< b>http://www.ABC.com/xyz/pqr.html。然后页面应该正常打开。但如果访问者不是美国/加拿大访问同一网址,那么访问者需要重定向到http://www.ABC.com/404.html



我曾经在google adwords上投放广告,我的服务仅限于我们/ canda。但我曾经从我的竞争对手(通过代理)或其他国家的ip获得欺诈点击。

i have a website in html.i want visitors only from usa & canada.
Others visitors needs to redirect to error page.

Suppose a visitor is from USA/CANADA lands on my website on url "http://www.ABC.com/xyz/pqr.html".then page should open properly. But if a visitos is other than USA/CANADA visits on same url then visitor need to redirect to "http://www.ABC.com/404.html".

i used to run ads on google adwords and my services are for us/canda only. but i used to get fraud clicks from my competitors(by proxy)or from other countries ip.

推荐答案

这不是javascript或html5的问题。这是服务器方面的问题。您需要GEOIP服务将客户端IP转换为地理位置,并在必要时重定向。检查IP范围也可能是一种解决方案: http://www.proxyforest.com/e-allocate.htm [ ^ ]
This is not a matter of javascript or html5. It is a server side concern. You need a GEOIP service to translate the client ip to geographic location and redirect if necessary. Checking IP ranges might be also a solution: http://www.proxyforest.com/e-allocate.htm[^]


如果有人真的想隐藏他们来自哪里,你真的无能为力。不要相信我?

请在这里阅读: https://www.torproject.org/ [ ^ ]。





问候,



- Manfred
反驳是系统性的,你的a将被层压!
If someone is really bent on hiding where they come from there is really nothing you can do about it. Don''t believe me?
Read on here: https://www.torproject.org/[^].


Regards,

— Manfred
Refutance is systile, your a**es will be laminated!


http://www.geobytes.com/geodirection.htm#AlternatePageName [ ^ ]


这篇关于根据国家/地区的访客重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆