Switch your host/IP mappings in real time without editing your hosts file
LiveHosts Extension
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
Source Manifest.json
Similar Extensions
Virtual Hosts 10,000+ 102 ★ 9.7KiB
Awesome Host Manager 10,000+ 15 ★ 969KiB
Domain Switcher 10,000+ 29 ★ 1.05MiB
Virtual Hosts 10,000+ 16 ★ 274KiB
URL's Host Switcher 10,000+ 1 ★ 75.14KiB
Website IP 10,000+ 207 ★ 55.45KiB
HostSwitcher 10,000+ 2 ★ 7.57KiB
HostAdmin 10,000+ 53 ★ 181KiB
Requestly - Intercept, Modify & Mock HTTP Requests 10,000+ 1227 ★ 876KiB
Switch environment 10,000+ 4 ★ 43.0KiB
Domain Changer 10,000+ 6 ★ 252KiB
Hosts modifier 10,000+ 6 ★ 274KiB
ModHeader - Modify HTTP headers 10,000+ 1061 ★ 676KiB
Xdebug helper 10,000+ 429 ★ 70.13KiB
Host name rewriter 10,000+ 14 ★ 28.02KiB
Siderite's DNS Resolver 10,000+ 5 ★ 58.61KiB
DNS Flusher 10,000+ 16 ★ 18.67KiB
Flush DNS & close sockets 10,000+ 4 ★ 20.54KiB
Server IP 10,000+ 48 ★ 35.34KiB
Modify Header Value (HTTP Headers) 10,000+ 46 ★ 94.33KiB
Web Vitals 10,000+ 43 ★ 398KiB
CSS Used 10,000+ 184 ★ 164KiB
User CSS 10,000+ 264 ★ 298KiB
Dr.FLARE 10,000+ 13 ★ 1.66MiB
User reviews
Serge (ID: 000000ae07edaa9f) Voted 5 ★ - Updated 10/10/2023
Ree Wankko (ID: 00000072de37b23e) Voted 2 ★ - Updated 09/06/2023
Josue Garcia (ID: 0000004cbded0b8f) Voted 2 ★ - Updated 08/30/2023
Null Null (ID: 00000079d9e703c6) Voted 1 ★ - Updated 08/25/2023
Renato Frota (ID: 0000003f1388da1d) Voted 5 ★ - Updated 07/15/2023