html - How to redirect particular Internet Service Providers away from my website
问题描述
I'd like to redirect particular Internet Service Providers to other websites when trying to access my website (I'm a html/css newbie).
I'm not sure how to do this or whether it is possible with html/css(?), should I be looking at another language or is there a setting in Amazon Web Services that allows me to block or redirect specified ISPs.
Any ideas are very much appreciated.
解决方案
我想起了一个竞争对手访问公司网站以获取定价信息的故事。因此,该公司更改了他们的网站以向他们的竞争对手显示不同的价格!
因此,您的目标似乎是“当请求来自 IP 地址 XX 时,不要让他们访问我的网站”。
以下是实现此目的的几种方法:
- 使用网络访问控制列表 (NACL)阻止来自单个 IP 的流量— 非常简单有效!
- 或者,您可以使用AWS Application Load Balancer 的高级请求路由配置规则
- 或者,您可以使用 AWS Web 应用程序防火墙 (WAF)来阻止特定 IP 地址
我认为将他们发送到带有虚假信息的替代网站会更有趣,这样他们就不会意识到你实际上在阻止他们!
推荐阅读
- c# - 在 ItemInserting 上未发生 ListView 验证
- java - 想在java中打印特定单元格的所有行值
- java - 如何阻止 Recyclerview 产生重复项并停止洗牌?
- r - 为什么我的错误栏的末端不显示?
- django - 尝试将模型转换为 dict 时图像字段上的值错误
- javascript - 尝试连接到 MongoDB Atlas 时如何修复密码错误?
- google-maps - 由于自定义图像,Google Maps API v3 多个标记不起作用?
- backendless - 无法连接到后端 API 服务器
- macos - 每次打开 rails 项目文件夹时都需要输入 rvm use
- scala - 在 Confluent conn 失败时通过 HTTPS 的 Kafka Schema Registry