
Virtual Hosts by Longoon
Apply virtual hosts and overwrite the Hosts header for development purposes.
You'll need Firefox to use this extension
Extension Metadata
Screenshots

About this extension
Access virtual hosts of a server without the need of host redirection or DNS.
== 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 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.
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.
== 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 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.
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.
Rate your experience
Report this add-on for abuse
If you think this add-on violates Mozilla's add-on policies or has security or privacy issues, please report these issues to Mozilla using this form.
Please don't use this form to report bugs or request add-on features; this report will be sent to Mozilla and not to the add-on developer.
PermissionsLearn more
This add-on needs to:
- Access your data for all websites
More information
- Add-on Links
- Version
- 1.0
- Size
- 11.53 KB
- Last updated
- 3 years ago (Jan 31, 2020)
- Related Categories
- License
- The MIT License
- Version History
Add to collection
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