How to just:
Categories: Technical | design | Other | Food | All

How to set up a CGI proxy


So you want to set up a CGI proxy, do you? This is useful if you want to get around work filter, want to route your internet traffic through another country, want to conceal what you'e doing, etc.

WARNING: Do not just follow these instructions and leave the proxy in your cgi-bin. Read until the end!!!
The first thing you will need is a server to host it. I recommend getting one from These Guys, who offer cheeeaaaap VPSs, or These Guys who offer really niiiiiiiiice VPSs (that link is an affiliate link. If you purchase from that, I get credit on the service. here is the same link without the affiliate attribute).
After you purchase one of those, you're going to want to install cgi proxy.
Here are most of the commands that you'll need to get cgi proxy fully up and running:
   $ cd /tmp/
   $ wget
   $ tar -xvf cgiproxy.2.1beta19.tar.gz
   $ cp nph-proxy.cgi /var/www/localhost/cgi-bin/
   $ sudo chown apache /var/www/localhost/cgi-bin/nph-proxy.cgi
   $ sudo chmod +rx /var/www/localhost/cgi-bin/nph-proxy.cgi
   $ sudo apache2ctl start
(the last command could also be "httpd -u", or "apachectl start", or "/etc/init.d/apache2 start")
Now navigate to http://your_servers_ip/cgi-bin/nph-proxy.cgi VOILA!
This is a BAAAADDDDD idea, btw. Bots will find your proxy, and will exploit it. Do not do this. What you're going to want to do is put the nph-proxy script into a password protected directory.
Read this - how to password protect a directory on apache

Link to this

Be sure to check out our other project, Thingist - Things you love Looking for other Technical articles?
Here is another random article from this category:

How to see queued messages on a postfix mail system

How to see the outbound mail queue on postfix. Postfix obviously cannot just send everything at one time, so it has to queue up messages that it is working with. I am going to show you how to view these.

Read More
Be sure to check out our other project, Thingist - Things you love