当我尝试访问我的网站时,我想将特定的Internet服务提供商重定向到其他网站(我是html / css新手)。
我不确定如何执行此操作,或者不确定是否可以使用html / css(?),我是否应该查看其他语言,或者Amazon Web Services中是否存在允许我阻止或重定向指定ISP的设置?
非常感谢任何想法。
答案 0 :(得分:2)
让我想起了一个故事,其中一个竞争对手访问了公司的网站以获取价格信息。因此,该公司更改了网站,以向竞争对手显示不同的价格!
因此,您的目标似乎是“当请求来自IP地址XX时,不要让他们访问我的网站”。
以下是实现此目的的几种方法:
我认为将它们发送到带有虚假信息的替代网站会更好玩,因此他们不会意识到您实际上是在阻止他们!
答案 1 :(得分:0)
I reread your issue and you only wanted specific providers, this would redirect for everyone. this wont work if popups are disabled
<html>
<body onload = "forwardFunction()">
<script type="text/javascript">
function forwardFunction() {
window.open("https://www.google.com","_self");
}
</script>
If you can read this something went wrong.
</html>