forked from twleung/nodejs-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
executable file
·46 lines (27 loc) · 1.19 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 ([email protected]).
His blog is at http://www.catonmat.net -- good coders code, great reuse.
------------------------------------------------------------------------------
You'll need node.js to run it. Get it at www.nodejs.org, 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 '1.2.3.4' >> iplist
And you don't need to restart the server, it will see the changes and update
itself.
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 'facebook.com' >> blacklist
More features coming later!
------------------------------------------------------------------------------
Happy proxying!
Sincerely,
Peteris Krumins
http://www.catonmat.net