Virtual Hosts

CRX ID
aiehidpclglccialeifedhajckcpedom
Status
No Privacy Policy Live on Store
Description from extension meta

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

Image from store
Virtual Hosts
Description from store

== 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.

Latest reviews

Hayden Thring 2024-04-18

just redirects to the specified ip

斎木稔貴 2023-06-04

内部的にリダイレクトされてIPでアクセスするだけなので、hostsファイルの代わりにはなりません。

Anonymous 2023-05-04

Replaces the virtual host with the ip in the address bar and thus does not work.

Marco Martorana 2022-06-23

Non funziona, non ha lo stesso comportamento di modificare il file hosts

ezikhoyo 2021-07-25

Currently broken, going to any page displays "Hmmm… can't reach this page" with ERR_INVALID_ARGUMENT as the reason.

ezikhoyo 2021-07-25

Currently broken, going to any page displays "Hmmm… can't reach this page" with ERR_INVALID_ARGUMENT as the reason.

Cache 2021-07-20

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.

Cache 2021-07-20

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.

max chen 2021-06-24

火狐的都可以添加多个啊,这个怎么就一个。。

Scott Bain 2020-08-05

This actually works to sign into wordpress. I had tried a few other options first but this one works for me.

Scott Bain 2020-08-05

This actually works to sign into wordpress. I had tried a few other options first but this one works for me.

nguyễn(グェン)syusei(集成) 2020-06-23

これはhostsファイルのように指定したIPで指定したドメインを参照するものではなく、指定したドメインにアクセスしようとすると指定したIPそのものでアクセスする。 IP直接指定して見れるものとまったく同じであり、hostsファイルの書き換えの代わりにならない。 全くなんの役にも立たない拡張機能

Issam Najm 2020-01-12

Great, but it works only for one website, you need to extend it guys thanks!

Issam Najm 2020-01-12

Great, but it works only for one website, you need to extend it guys thanks!

David Pisarek 2019-12-30

Has not worked in years. Use something else or edit your hosts file.

David Pisarek 2019-12-30

Has not worked in years. Use something else or edit your hosts file.

james f 2019-11-13

Just doesn't seem to work. Using Chrome on a Mac if that matters. To see if it was entirely broken. I can enter any IP address and it makes no difference. Nothing "breaks". I tried clearing cookies, refreshing clearing cache, quitting Chrome and reopening..

james f 2019-11-13

Just doesn't seem to work. Using Chrome on a Mac if that matters. To see if it was entirely broken. I can enter any IP address and it makes no difference. Nothing "breaks". I tried clearing cookies, refreshing clearing cache, quitting Chrome and reopening..

Rack Monitor 2019-11-11

Doesnt work anymore - always says This site can’t be reached

Rack Monitor 2019-11-11

Doesnt work anymore - always says This site can’t be reached

Walter Antolini 2019-06-18

not working

Walter Antolini 2019-06-18

not working

Helt Long 2019-06-10

只能修改一个,要不然就可以用了,真是可惜

Bjorn J 2019-03-30

Simply changes the target domain to the VHOST IP: example.com -> 1.1.1.1. Which is useless because we have multiple VHOSTS behind the IP. So it simply redirects to server main host.

Bjorn J 2019-03-30

Simply changes the target domain to the VHOST IP: example.com -> 1.1.1.1. Which is useless because we have multiple VHOSTS behind the IP. So it simply redirects to server main host.

Anonymous 2019-03-25

replaces any matching text in the URL with the ip address, instead of acting as a true virtual host. Makes it impossible to use a hosting file manager (because the site URL is usually a part of the path) at the same time as troubleshooting a front end. Also, host references in code are not handled, so it's only marginally useful. basically, I still have to rely on windows hosts file.

Anonymous 2019-03-25

replaces any matching text in the URL with the ip address, instead of acting as a true virtual host. Makes it impossible to use a hosting file manager (because the site URL is usually a part of the path) at the same time as troubleshooting a front end. Also, host references in code are not handled, so it's only marginally useful. basically, I still have to rely on windows hosts file.

Tobias Barth 2018-11-24

Doesn't work at all.

Tobias Barth 2018-11-24

Doesn't work at all.

Robert Harrington 2018-11-20

Didn't work. Installed and the address window popped up once. After that, clicking on it only showed an empty box.

Robert Harrington 2018-11-20

Didn't work. Installed and the address window popped up once. After that, clicking on it only showed an empty box.

Tamás Jakabfi 2018-09-24

Useless

Tamás Jakabfi 2018-09-24

Useless

Frank Wuebbeling 2018-06-13

Does exactly what I want. We have a backup copy of our web server running on a host with a different name. Accessing that host directly immediately redirects back to the "real" server. This extension allows us to access the backup server and stay there. Used to do this with clumsy proxies up to now. Thumbs up!

Frank Wuebbeling 2018-06-13

Does exactly what I want. We have a backup copy of our web server running on a host with a different name. Accessing that host directly immediately redirects back to the "real" server. This extension allows us to access the backup server and stay there. Used to do this with clumsy proxies up to now. Thumbs up!

Giovanni C 2018-05-14

It works as expected: setting mywebsite.com to ip 1.2.3.4 is requesting content from mywebsite.com virtual host on 1.2.3.4 server even if the original DNS is different. BUT there is a BIG problem: all the subdomains are redirecting to the same ip as well. So if you have a "media.mywebsite.com" domain on a storage host, it will try to find it on 1.2.3.4 as well. :/

Giovanni C 2018-05-14

It works as expected: setting mywebsite.com to ip 1.2.3.4 is requesting content from mywebsite.com virtual host on 1.2.3.4 server even if the original DNS is different. BUT there is a BIG problem: all the subdomains are redirecting to the same ip as well. So if you have a "media.mywebsite.com" domain on a storage host, it will try to find it on 1.2.3.4 as well. :/

Ash Nasiri 2018-05-02

It saved us a lot of time and hassle to achieve something so simple - loved it

Ash Nasiri 2018-05-02

It saved us a lot of time and hassle to achieve something so simple - loved it

Mark Hinson 2018-05-01

Simple quick solution for site development

Mark Hinson 2018-05-01

Simple quick solution for site development

Steven 2018-04-07

Ändert die DNS Auflösung. Wie das Anpassen der Hosts-Datei. Leider nur eine Einstellung möglich.

Michael Wilson 2018-04-04

Just installed this, and it worked perfectly for my use case. I needed to access an old site we had just replaced, so that I could grab a single file linked from a specific page.

Michael Wilson 2018-04-04

Just installed this, and it worked perfectly for my use case. I needed to access an old site we had just replaced, so that I could grab a single file linked from a specific page.

Assistenza Marco Polo 2018-02-13

Doesn't let to override hostname to IP resolution like you could do editing hosts file of your OS.

Assistenza Marco Polo 2018-02-13

Doesn't let to override hostname to IP resolution like you could do editing hosts file of your OS.

J Ro 2018-01-31

Only a redirect as far as I can tell.

J R 2018-01-31

Only a redirect as far as I can tell.

Stefan Norman 2018-01-15

just replaces the URL doesn't submit the HTTP_HOST request to another IP like expected

Stefan Norman 2018-01-15

just replaces the URL doesn't submit the HTTP_HOST request to another IP like expected

Statistics

Installs
9,000
Market
Chrome Web Store
Category
Rating
3.33 (103 votes)
Last update
2015-10-29
Version 1.2
Languages
en

Similar extensions