Giter VIP home page Giter VIP logo

chrome-hostadmin's Introduction

HostAdmin

Saving your time when you switch domain-ip mapping between different environment

Chrome APP Version

Google banned NPAPI Please use Chrome WebStore APP Version instead.

It is true that is not easy to use than a menu bar edition. sad..

Installing

How HostAdmin analyze the Hosts file

Syntax detail

  • Common

IP DOMAIN [#COMMENT]

Example:

    127.0.0.1       localhost #comment here

NOTE: A line with a comment, 'hide' (case-insensitive), would be hiden from HostAdmin.

  • Grouping

     #==== Groupname 
     
     # some mappings
     
     #====
    

    Example:

     #==== Project 1
     #127.0.0.1       localhost1
     127.0.0.1       localhost2
     127.0.0.1       localhost3
     #====
    
     #==== Project 2
     #127.0.0.1       localhost1
     #127.0.0.1       localhost2
     #127.0.0.1       localhost3
     #====
    
  • Bulk Hide

     #hide_all_of_below 
     ...
     
     #All text here will be parsed as comment
     
     ...
    

WRITE Permission to Hosts File

WRITE Permission to Hosts is needed, thus HostAdmin could modify your Host Files. XP users need NO additional setting. Here is a guide for you to gain write privilege for Vista/7/Linux/MacOS users

http://code.google.com/p/fire-hostadmin/wiki/GAIN_HOSTS_WRITE_PERM

DNS Auto refreshing

  • Firefox

    HostAdmin borrowed code from DNS flusher to refresh dns when hosts file is modified.

  • Chrome

    Since Chrome 21, Chrome will auto refresh dns by itself. More info at this ticket

    KNOWN ISSUE

    DNS may not refresh as soon as hosts file changes due to a Chrome bug reused socket pools by domain even if hosts changes

    To avoid this, open chrome://net-internals/#sockets and flush your host

    More info at Chrome Bug 152906 268059 288061

chrome-hostadmin's People

Contributors

efriede avatar murs313 avatar tg123 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chrome-hostadmin's Issues

[feature request] sync remote hosts file

Is there any plan to support to download remote file like what adblock does. We can make use of the existing comment rules.

for example:

#remote(http://10.0.0.101/shared)

means sync the whole local hosts with http://10.0.0.101/shared

and of course this applys to group

#==== project1 #remote(http://10.0.0.101/project1)
#====

it's easy to co-exist with other rules

#hide remote(http://10.0.0.101/shared)

use space or something else as separator, and each comment represent a single rule.

btw, we can use the comment to save more info if needed, like #lastupdate(2016-04-26 12:00:00).

一种解决Chrome DNS缓存问题的方式

正如README提到的那样,如果是编辑了hosts文件,需要手工Flush Socket才能生效。

但是实测有另一种方式可以让Chrome自动更新:

  1. 删除原hosts文件
  2. 新建hosts文件
  3. ipconfig /flushdns

这种方式下,Chrome无需Flush socket也可更新

In chrome hosts records doesn't appear.

Hi,
i have Linux Debian 7 with Chrome (not Chromium) version 35.0.1916.153

With this configuration hosts file records doesn't be displayed on that browser but in Firefox ( Iceweasel in my case ) all works fine.

I try to debug a little the extension.
In the relative file "chrome-hostadmin/container/chrome/host_file_wrapper.js" the variable "helper" results undefined for me.

I've installed compiled extension .crx by dist-chrome.sh script that give me version 1.4.8
( Naturally i had commented the .crx compiling blocked by if statement. )

HostAmin, Firefox AddOn

I can't seem to find any help to open the HostADmin Firefox Add-On, which I need to change my DNS settings, as I want to import a self-hosted Blogger site to Wordpress.

SOMEONE PLEASE HELP Thank you!

the plugin should have individual rules

In UNIX-like system, It isn't a good idea that I change host file to every can modify.

I think, the plugin have individual rules, and hook every session.

Will this be migrated to a Progressive Web App?

Google doesn't allow downloads of the app anymore and asks me to remove it every time I launch it.
This is due to them sunsetting old apps. Likely ones on WebManifestV2 as they are moving to V3 and will only support Progressive Web Apps.

It looks like this project hasn't been updated in a while, but is this planned for an update?

Reference: https://support.google.com/chrome/thread/174381169?visit_id=638012622324473738-4154304828&p=chrome_app_deprecation&rd=1

是否可以在图标旁边显示分组名

你好,感谢开发了这么好用的一个插件,给我们开发测试带来了很大的便利。
我们同时遇到一个问题,就是在频繁切换分组后,我们忘记了自己在哪个分组上,如果能在工具栏显示当前域名命中的分组名就更好了。
再次感谢,给我们带来如此好用的工具。

White screen

After Chrome 35 Update (Ubuntu), hostadmin is not working. I can only see a blank page.

dose not work recently

hi , i don't know why the plugin does not work recently, it can not load the hosts file , why?

Host file not loading in Chrome on Ubuntu

I have installed the extension through the Chrome Web Store and the info from the host file does not come up.
I am running Ubuntu 11.10 64bit.
Everything works fine for the Firefox extension on the same machine.

[Feature] Option to only show groups in HostAdmin

Hello,

Thanks a lots for your plugin, it's exactly what I need, it's really gooood ! :-)

For each project, I have a lot of subdomains ( project.com, www.project.com, app.project.com, admin.project.com sql.project.com ...)

But each of them point to the same IP, so in HostAdmin, I can see for each project multiples lines for each subdomains. So my list is really long.

I only use the group option at the bottom of the HostAdmin to switch on/off the project.

May be an option in hosts could be added ( eg: "##==== Project Name # group-only" or at the end of the file "# show-group-only" ... ) to hide the individuals subdomains lines ?

Best regards,

火狐版本过新无法安装问题

您好,HostsAdmin的开发者;我一直使用你开发的插件来管理hosts,最近发现新版本的火狐浏览器无法安装,提示版本太低。不知道您有没有时间去更新一下:-D

Where is version 1.4.9.2?

The version in firefox addon page is 1.4.9.2, but latest version in current code-base is 1.4.9.1 !

Display bug on Firefox

I've been getting this issue for a while both on the standard and dev edition of Firefox MacOS.

screen shot 2015-12-10 at 11 57 21

Opening a new window (not tab) fixes the problem.

Without workarounds, does not work in Chrome 35+ due to NPAPI

NPAPI was deprecated at the end of 2013 and support for non-whitelisted NPAPI plugins/extensions was removed in Chrome 35. Hence HostAdmin no longer works in the latest Chrome builds.

This can be worked around by using Chrome Extension Downloader to manually download and install HostAdmin, as described at http://chrome-extension-downloader.com/#install - this bypasses the whitelist. It would be helpful if this information was present on the extension's page in the Chrome store, and in the Readme on this site.

The better solution, obviously, would be to replace NPAPI usage with non-deprecated APIs - if possible.

License file missing

Hello there, I saw that on Google Code, this is under the Mozilla Public License 1.1, but I don't see a LICENSE file in this repository. Is this still under MPL 1.1 or MPL 2?

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.