aioros / livehosts Goto Github PK
View Code? Open in Web Editor NEWA browser extension to switch your host/IP mappings in real time without editing your hosts file
License: GNU General Public License v3.0
A browser extension to switch your host/IP mappings in real time without editing your hosts file
License: GNU General Public License v3.0
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.
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.
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.
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?
i.e. HTTP request has that https://$IP/$WEBHOST/path/path
This makes some sites fail.
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.
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!
Mozilla Firefox provide WebExtensions API, that is compatible with Google Chrome, so many extensions use same code base for both platforms: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions
Can you lookup Mozilla API and make your extension compatible with Mozilla Firefox? Thanks!
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?
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.
that are mentioned in README:
href
and src
attributes) could be different from the originalwindow.location
has a different value that can potentially throw off JavaScript snippetsHave ideas how to fix those?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.