Google-chrome – Simulate manipulation of the etc/hosts file in Google Chrome

google-chromegoogle-chrome-extensionshosts-file

How can I set up Chrome to reference hostname lookups locally and not from the standard
etc/hosts file?

When debugging a website, it's sometimes useful to set up entries in C:\Windows\system32\drivers\etc\hosts that replace certain domains with localhost, thus allowing me to test out on-the-fly versions of websites or domains that may conflict with live actual sites.

Can I set up Google Chrome in a way that simulates and simplifies this process?

I won't to modify the browser instance to behave as if etc/hosts has been modified although even that might be too much of a security risk in an extension.

Best Answer

I just found the Host Switch Plus Chrome Extension which does exactly that ;)