LiveHosts Chrome 插件, crx 扩展下载
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
| 分类 | 💻开发者工具 |
| 插件标识 | hdpoplemgeaioijkmoebnnjcilfjnjdi |
| 平台 | Chrome |
| 评分 |
★★★★☆
4.3
|
| 评分人数 | 1230 |
| 插件主页 | https://chromewebstore.google.com/detail/livehosts/hdpoplemgeaioijkmoebnnjcilfjnjdi |
| 版本号 | 2.0.0 |
| 大小 | 57.78KiB |
| 官网下载次数 | 10000 |
| 下载地址 | |
| 更新时间 | 2022-03-29 00:00:00 |
CRX扩展文件安装方法
第1步: 打开Chrome浏览器的扩展程序
第2步:
在地址栏输入: chrome://extensions/
第3步: 开启右上角的【开发者模式】
第4步: 重启Chrome浏览器 (重要操作)
第5步: 重新打开扩展程序管理界面
第6步: 将下载的crx文件直接拖入页面完成安装
注意:请确保使用最新版本的Chrome浏览器
同类插件推荐
HostAdmin
Saving your time when you switch domain-ip mapping
HostSwitcher
Easily switch between hosts for the same path/endp
URL's Host Switcher
A tool for quickly switching the host of the curre
Virtual Hosts
Manage Virtual HostsThis extension allows you to s
Domain Switcher
Simplify web development by easily switching domai
Awesome Host Manager
Yet another Host tools.又一个 host 管理工具 • 秒切 host 无延
Virtual Hosts
Access virtual hosts of a server without the need
Hosts modifier
Hosts Modifier allows you to effortlessly redirect
Domain Changer
Simple Domain ChangerSimply to change domain http
Switch environment
Switch from production to development environment,
LiveHosts
Switch your host/IP mappings in real time without
Requestly - Free API Testing & Mocking Tool
Open-Source API Client & HTTP Interceptor. API
Website IP
Simple script which places the IP of the current w