When developing a website, it's often handy to map the domain to 'localhost' in your hosts file so you can use the real url in a browser. However, switching between local and public hosts using the hosts file gets boring pretty fast, even if you use a tool like gas mask.
I'm wondering if there would be some way to use a proxy server to make things more easy. I want to point my browser to a proxy server that forwards all requests for mydomain.tld to localhost. I've been looking into glype, but i can't find a way to make this work using that.