Git Product home page Git Product logo

vhosts-chrome-extension-gachl's Introduction

Virtual-Hosts-Chrome-Extension

Overwrite the virtual host HTTP header in Chrome requests to debug your web server or work around DNS restrictions.

This extension is available in the Chrome Web Store: https://chrome.google.com/webstore/detail/virtual-hosts/aiehidpclglccialeifedhajckcpedom

I've received a couple of requests to implement some more features, unfortunately I simply don't have the time. Therefore I release this project so if there are any features you're missing, you are now able to implement them :)

Please do not monetize on this code, keep it open and free. Fork and pull if you'd like to see your feature in the Web Store version!

How do I use this?

Install the extension, click the extension icon to open the settings popup. Enter your domain name in the VHost Domain box and your server IP address in the VHost IP box. Tick the Enable box. In Chrome, visit VHost Domain or VHost IP and voilà! Just like editing the hosts file but without the annoyance.

Settings are synced via Chrome to other machines. Awesome! 👍

What is the purpose of this?

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.

vhosts-chrome-extension-gachl's People

Contributors

mcarver avatar gachl avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.