GithubHelp home page GithubHelp logo

aioros / livehosts Goto Github PK

View Code? Open in Web Editor NEW
76.0 4.0 9.0 569 KB

A browser extension to switch your host/IP mappings in real time without editing your hosts file

License: GNU General Public License v3.0

JavaScript 48.21% HTML 13.36% CSS 1.80% Shell 3.24% Vue 33.39%
hostname chrome-extension switch developer-tools vue3

livehosts's People

Contributors

aioros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

livehosts's Issues

Still functional?

Hi there,
Does this Chrome extension actually still work on latest versions of Chrome?
It seems to have no effect at all, in my browser.
Thanks.

Jonathan

If there is a port number after hostname in the url, the request header 'Host' missing that port number.

If there is a port number after hostname in the url, the request header 'Host' missing that port number.
This will lead the response redirect to wrong url.

for example, I want to access http://192.168.1.20:55000, with livehosts map (192.168.1.20 to myhost.com). The request header 'Host' contains only myhost.com, not myhost.com:55000, when my server response to redirect next url, only http://myhost.com/blablabla, which http://myhost.com:55000/blablabla is wanted.

On Firefox, fails if DNS over HTTPS is enabled

Mostly a feature request. I don't know if Firefox exposes the necessary APIs now.

The extension only works if network.trr.mode is set to 0. If I enable DNS over HTTPS, requests don't get sent to the new IP.

Custom Ports / Extension Doesn't Work?

When I map site.com to an IP of 1.1.1.1 (for example), when I try to access https://site.com:21222, it doesn't work. This extension doesn't do the same thing that a hosts file entry change does?

Also, why are the URLs sometimes changed to https://1.1.1.1:21222/site.com in the address bar? This is not correct?

I just get a message of:

The page isn’t redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    This problem can sometimes be caused by disabling or refusing to accept cookies.

However, if I create a hosts file entry of 1.1.1.1 for site.com, everything works as it should. Does this extension support custom ports? Does it work with any possible redirects setup on a domain too?

Referer is messed

i.e. HTTP request has that https://$IP/$WEBHOST/path/path
This makes some sites fail.

Multiple hostnames with the same IP address

Hello @Aioros,

First of all - Thanks for the extension! We use this application at my workplace.

Do you know if there is a way to have multiple hostnames with the same IP address?

I need the header to change based on which hostname I am searching for. Seems like the redirect happens first and the header changes second, making me always pick the first header rule in the list since it's based off of the IP-address from the redirect.

re-direct from https to http gives an error

Hi!
First, let me tell you thank you for such a nice tool.

I've encountered recently a problem where going to https://domain.com it redirects to http version (due to an offline page without certificate) and this results to an error:
You don't have permission to access this resource.Reason: The client software did not provide a hostname using Server Name Indication (SNI), which is required to access this server.

Thank you in advance!

Support for wildcard domains

In my case whilst I develop apps I need to resolve wildcard domains for example:

*.example.com

Because my application requires dynamic subdomains.
How I can configure that using livehosts?

Not working on OS X / macOS / Chrome

OS X users reported that the extension is not working for them on Chrome. I don't currently have a way to test it personally, so any console error log would be appreciated while I investigate.

possble to fix Issues?

that are mentioned in README:

  • depending on the server, parts of a web page referring to the site URL (like href and src attributes) could be different from the original
  • window.location has a different value that can potentially throw off JavaScript snippets
  • most Cross-Origin request won't work

Have ideas how to fix those?

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.