Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A HTTP proxy server written in node.js
Branch: master
Pull request Compare This branch is 49 commits behind pkrumins:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Nodejs-proxy is a simple HTTP proxy server written in node.js. It currently
just proxies all the requests on port 8080.

Nodejs-proxy was written by Peteris Krumins (
His blog is at  --  good coders code, great reuse.


You'll need node.js to run it. Get it at, then compile and
install it:

    $ ./configure
    $ make
    $ make install

Next, run proxy.js through node program:

    $ node proxy.js

And that's it!

Now I have also added ip-based access control and by default the proxy will
deny all IPs. To add a new ip, just echo it to 'iplist' file:

    $ echo '' >> iplist

And you don't need to restart the server, it will see the changes and update

You can also block hosts based on a regex pattern, to do that, echo the hosts
you don't wish the proxy to serve to 'blacklist' file:

    $ echo '' >> blacklist

More features coming later!


Happy proxying!

Peteris Krumins

Something went wrong with that request. Please try again.