URL's Host Switcher
A tool for quickly switching the host of the current url. make it easy to jump the same path in a local, test or prod environment
Switch your host/IP mappings in real time without editing your hosts file
按已采集快照查看用户数变化。
展示最近 7 日窗口内已采集的评分快照,辅助判断近期评分是否稳定。
同口径展示 1 天、7 天、30 天的绝对增长与增长率。
查看发布时间、版本、支持语言、最近更新和抓取时间。
查看插件说明、主要功能和适用场景。
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:
查看最近评论和评分分布。
商店综合星级:3.2。下方星级分布只统计已同步评论正文;如果某个插件只有公开分数、没有真实评论正文,这里可能为空。
查看 Chrome 商店详情页中的相关产品。
A tool for quickly switching the host of the current url. make it easy to jump the same path in a local, test or prod environment
Simple script which places the IP of the current website in the bottom right.
Intercept & modify HTTP(S) traffic: redirect URLs, modify headers, inject scripts, mock REST & GraphQL APIs, and more.
Hosts Modifier allows you to effortlessly redirect domain requests without the need to modify your hosts file.
Modify HTTP request headers, response headers, and redirect URLs
Add, modify or remove a header for any request on desired domains.
The concept is cool, but it doesn't work for me. Installed it on a Mac on the latest version of Chrome. I input the settings and saved them, no redirects happened.
Only one I found so far that works. Great job
It did the basics of what I was wanting it to do, but I was hoping to have the ability to also put a non-default port on the end of the IP address that it could use for that host name instead. That seemed to take Chrome back to as if I didn't have the entry at all.
Just to the point and functional.
Hard to use
Muito boa! Recomendo!
It's a nice concept, but it doesn't really work perfectly. Redirects break the system, so for example if I want to test a virtual host for "foo.mysite.com" on a local server 192.168.x.x, but the main page of "foo.mysite.com" specifies a redirect to "/login", for example, the mapping won't kick in again and it'll try to send me to 192.168.x.x/login without faking the hostname being used, so the virtual host doesn't end up being used. The same also happens with HTTP-to-HTTPS redirects.
I don't think this will work with WordPress on a Local Web server installation? B/c it's changing the URL to IPaddress/wp-admin the server doesn't recognize it. Is there a way to make this work with WordPress on a WAMP installation?
Guy, the behavior is incorrect. First of all <IP address> is not the same origin of <Hostname>. Chrome will consider the two sites in a totally different way. The request is correctly sent, and the server should work, but the thing is at the client side: Chrome does not work this way. Secondly it wont work with HTTPS. The certificate returned by the server is for <Hostname>, not for <IP address>. Surely it is still useful some way, but what I am really looking for is sth. that works exactly the same way /etc/hosts works.
firstly, sorry for poor English language I have a live site and a local copy of it on xampp that I work on it for testing. I established a virtual-host in xampp server config to work on local version, I have to add "127.0.0.1 example.com" in host file to open site with domain instead of "http://localhost/" then by commenting this line I access to live version your addon worked for me but the URL start with 127.0.0.1 not example.com is there any way to solve this problem?