Access virtual hosts of a server without the need of host redirection or DNS.

Latest Version

Version
1.2
Update
October 29, 2015
Size
9.7KiB
Developer
codefreak.net
Category
Users
10,000+
Rating
3.31373 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
WebRequest
WebRequestBlocking

Storage
See more

Virtual Hosts Extension

== ABOUT ==
Overwrite the Host HTTP header to request a specific virtual host from a remote server.

Often enough while waiting for DNS propagation or standing up a replacement site, developers edit the hosts file on their system to achieve the same effect. This extension basically does the same thing without the hassle.

When detecting outgoing HTTP requests from your Chrome browser to the VHost Domain we redirect to the VHost IP. When detecting outgoing HTTP requests from your Chrome browser to the VHost IP, the extension simply adds a Host header containing the domain name specified in the VHost Domain. Any requests to sites other than the VHost Domain and VHost IP are ignored, so browsing other sites won't be impacted.

== HOW TO USE ==

- Enable -
Click the VHost icon in the top right and enter the desired domain name.
When a domain is present and [x] Enabled is checked, the VHost icon turns red. That means all websites will be requested with the entered domain.

- Disable -
Untick the [ ] Enabled checkbox. The icon will turn green-ish which means VHost is disabled and all websites will be requested with the regular host name.

== Source ==
I released the source code on GitHub: https://github.com/Gachl/Virtual-Hosts-Chrome-Extension
I was unable to improve this extension with more features and I saw it being used by quite a lot of people. So thank you for that! If you need any features you can find the code or a fork of someone who already implemented more stuff over on GitHub.

== THANK YOU ==
For using this extension. If you have the time to spare, please consider rating it in the Web Store.

Many thanks to mcarver (https://github.com/mcarver) for:
- Cleaning my very basic JS
- Adding request filtering
- Adding redirect
- Adding Chrome storage sync
- Making this thing better in many ways

For the next version I hope to merge Zacqarys changes (https://github.com/Zacqary/Virtual-Hosts-Chrome-Extension) to this version.
Read more

Source Manifest.json

{ "background": { "persistent": true, "scripts": [ "background.js" ] }, "browser_action": { "default_icon": "disabled.png", "default_popup": "popup.html" }, "description": "Access virtual hosts of a server without the need of host redirection or DNS.", "manifest_version": 2, "name": "Virtual Hosts", "permissions": [ "webRequest", "webRequestBlocking", "\\u003Call_urls>", "storage" ], "update_url": "https://clients2.google.com/service/update2/crx", "version": "1.2"}
Read more

Similar Extensions

icon

LiveHosts Extension · Developer Tools 10,000+ 40 ★ 57.78KiB

icon

HostAdmin Extension · Developer Tools 10,000+ 53 ★ 181KiB

icon

Awesome Host Manager Extension · Developer Tools 10,000+ 15 ★ 969KiB

icon

Domain Switcher Extension · Developer Tools 10,000+ 29 ★ 1.05MiB

icon

Virtual Hosts Extension · Developer Tools 10,000+ 16 ★ 274KiB

icon

Hosts modifier Extension · Developer Tools 10,000+ 6 ★ 274KiB

icon

HostSwitcher Extension · Developer Tools 10,000+ 2 ★ 7.57KiB

icon

Website IP Extension · Developer Tools 10,000+ 207 ★ 55.45KiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 10,000+ 1227 ★ 876KiB

icon

Google Analytics Debugger Extension · Developer Tools 10,000+ 533 ★ 28.88KiB

icon

DNS Flusher Extension · Developer Tools 10,000+ 16 ★ 18.67KiB

icon

Host name rewriter Extension · Productivity 10,000+ 14 ★ 28.02KiB

icon

ModHeader - Modify HTTP headers Extension · Developer Tools 10,000+ 1061 ★ 676KiB

icon

Siderite's DNS Resolver Extension · Productivity 10,000+ 5 ★ 58.61KiB

icon

Server IP Extension · Developer Tools 10,000+ 48 ★ 35.34KiB

icon

Xdebug helper Extension · Developer Tools 10,000+ 429 ★ 70.13KiB

icon

Tamper Chrome (extension) Extension · Developer Tools 10,000+ 233 ★ 20.92KiB

icon

Akamai debug headers Extension · Developer Tools 10,000+ 24 ★ 4.85KiB

icon

IP Address and Domain Information Extension · Developer Tools 10,000+ 569 ★ 246KiB

icon

Header Hacker Extension · Developer Tools 10,000+ 121 ★ 159KiB

icon

Modify Header Value (HTTP Headers) Extension · Developer Tools 10,000+ 46 ★ 94.33KiB

icon

Request Maker Extension · Developer Tools 10,000+ 184 ★ 138KiB

icon

ShowIp Extension · Developer Tools 10,000+ 80 ★ 54.38KiB

icon

Simple WebSocket Client Extension · Developer Tools 10,000+ 97 ★ 53.95KiB

User reviews

icon

斎木稔貴 (ID: 000000086ccc68ab) Voted 1 ★ - Updated 06/04/2023 内部的にリダイレクトされてIPでアクセスするだけなので、hostsファイルの代わりにはなりません。

icon

Marco Martorana (ID: 00000015afacb6f1) Voted 1 ★ - Updated 06/23/2022 Non funziona, non ha lo stesso comportamento di modificare il file hosts

icon

ezikhoyo (ID: 000000bd7b1e7ddd) Voted 1 ★ - Updated 07/25/2021 Currently broken, going to any page displays "Hmmm… can't reach this page" with ERR_INVALID_ARGUMENT as the reason.

icon

Cache (ID: 0000009fe3e3ce4f) Voted 5 ★ - Updated 07/20/2021 What's not mentioned in the documentation is that this extension also works to redirect one domain to another. You can put the target domain in the VHOST IP field. So this is a nice utility to redirect example.com to dev.example.com. Perfect for my use case.

icon

max chen (ID: 0000002c8b55ecca) Voted 3 ★ - Updated 06/24/2021 火狐的都可以添加多个啊,这个怎么就一个。。