Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Virtual Hosts

Virtual Hosts by Longoon

Apply virtual hosts and overwrite the Hosts header for development purposes.

3.8 (4 reviews)3.8 (4 reviews)
235 Users235 Users
You'll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
About this extension
Access virtual hosts of a server without the need of host redirection or DNS.

== ATTENTION ==
This addon may not do what you think it does! Make sure you read and understand the functionality before submitting a 1-star review because you think it does something which it's not supposed to do, thank you!

THIS ADDON IS FOR TESTING VHOSTS!
THIS DOES NOT REPLICATE THE SYSTEMS HOST FILE DNS RESOLVING!!!

"Virtual Hosts" does not mean a "virtual hosts file" but refers to http "Virtual hosting"!!!

== ABOUT ==
Overwrite the "Host" HTTP header to request a specific virtual host from a remote webserver. IT DOES NOT RESOLVE DNS TO IP!!!!

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 facilitates the a similar effect without the hassle or when lacking permissions.

When detecting outgoing HTTP(S) requests from your Firefox browser to the VHost IP we rewrite the Host header to the VHost Domain. Any requests to sites other than the VHost IP are ignored, so browsing other sites won't be impacted.

== HOW TO USE ==

- Enable -
Click the VHost icon in the top right to open the settings panel.
Make sure Globally Enabled is checked.

- Adding vhosts -
Press Add new Virtual Host and enter the original Host in the IP field (either an IP address if accessing a website by IP or the domain name of the target website) and the new Host in the Host field.
When a domain is present and Enabled is checked for the host all websites matching the IP will be requested with the entered domain.

- Disable -
Untick the [ ] Globally Enabled checkbox or the individual Enabled checkboxes for each host.

== Source ==
I released the source code on GitHub: https://github.com/Longoon12000/Virtual-Hosts

== THANK YOU ==
For using this extension.
Developer comments
This extension is a rewrite of my original chrome extension Virtual Hosts which has since broken as chrome doesn't allow for the modification of the Host header.
Rated 3.8 by 4 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
2
4
1
3
0
2
0
1
1
Read all 4 reviews
Permissions and dataLearn more

Required permissions:

  • Access your data for all websites
More information
Add-on Links
  • Homepage
  • Support site
  • Support Email
Version
1.0
Size
11.53 KB
Last updated
6 years ago (Jan 31, 2020)
Related Categories
  • Web Development
License
MIT License
Version History
  • See all versions
Add to collection
Report this add-on
More extensions by Longoon
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.