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

How to download and manually install Virtual Hosts extension for Chrome

Looking for a way to install Virtual Hosts extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Virtual Hosts extensions manually, this article outlines two simple methods to effortlessly install Virtual Hosts extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Virtual Hosts extension and manually install through Drag &Drop

If you ever need to manually install a Virtual Hosts extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Virtual Hosts Extension by clicking the "Download CRX" button on the website.

Look for the Virtual Hosts extension you wish to install. Go to the website and download the Virtual Hosts extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Virtual Hosts extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Virtual Hosts extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Virtual Hosts extension for Chrome and install in Developer Mode

This is another method to install Virtual Hosts extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Virtual Hosts extension file

Select and download the Virtual Hosts extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Virtual Hosts extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Virtual Hosts extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Virtual Hosts extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Virtual Hosts extension in 2 ways. We hope this guide proves helpful.

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 火狐的都可以添加多个啊,这个怎么就一个。。