概述
Switch your host/IP mappings in real time without editing your hosts file
LiveHosts is a Chrome extension that aims at providing a working (even if sub-obtimal) solution to a common nuisance that many web developers have to deal with every day. If you have multiple versions of your websites sharing the same host names on multiple environments, you often need to switch the assignments in your OS hosts file. Other extensions (like the life-saving HostAdmin) can help with the cumbersomeness, but changes to the hosts file usually take an inconvenient amount of time to actually affect the browser. Unfortunately, there is no way to make Chrome direct requests for a hostname to a specific IP without a standard redirect - you could set up a smart HTTP proxy, but it's often not possible or not convenient. This extension settles for a sub-obtimal approach: requests to the indicated hostnames are redirected to the chosen IPs with an additional Host header. The browser's address bar reflects this behaviour showing the hostname right after the IP (e.g. http://127.0.0.1/www.example.com/). The extension also tries to take care of all requests to either the IP or the hostname in a consistent way. Issues After the redirect, the user is effectively in a different domain that the one they expected. They may notice some functional differences: - depending on the server, parts of a web page referring to the site URL (like href and src attributes) could be different from the original - window.location has a different value that can potentially throw off JavaScript snippets - most Cross-Origin request won't work
3.5 星(5 星制)36 个评分
Google 不会核实评价。 详细了解结果和评价。
Ree Wankko2023年9月6日
不是我希望的能替代 /etc/hosts 的插件,他只是修改了请求的host,这实际上会造成各种异常情况,就想别的评论中说的一样。
Smith寰子2023年2月17日
什么鬼东西,发出去的请求中的host居然是ip地址?开发者有基本常识吗?
详情
- 版本2.0.0
- 上次更新日期2022年3月29日
- 提供方Aioros
- 大小57.78KiB
- 语言English
- 开发者
电子邮件通知
aioros83@gmail.com - 非交易者该开发者尚未将自己标识为交易者。欧盟地区消费者须知:消费者权利可能不适用于您与该开发者达成的合约。
隐私权
该开发者已声明,您的数据:
- 不会因未获批准的用途出售给第三方
- 不会为实现与产品核心功能无关的目的而使用或转移
- 不会为确定信用度或放贷目的而使用或转移