Creating a proxy server with python
__Edit:__ _Do not take this article seriously, it is a spoof and will not help you create a real proxy server. Seriously, proxy servers are not trivial stuff and the potential for abuse is great._
In today’s tutorial, I’m going to introduce you to the cool computer language Python. Python is an elegant, mature language that runs on nearly any type of PC. One of the first things you’ll notice about the language is that it is simple and extremely readable. Instead of going into a lot of details, let’s write a simple program? Once you’ve installed python on your computer, and most Linux/Unix/Mac users should already have it installed, open the python shell by typing python. Then, type the following line and pressing Enter:
print "hello world."
You should be greeted with a friendly phrase. Isn’t that easy? Most tutorials would go on with a similarly cheesy example, but I want to instead show you how powerful the python language truly is. For most tools, creating a simple proxy server would be quite daunting. However in just a few lines of code, you can have your very own anonymizing proxy.
Since this is just a brief tutorial, we won’t include any authentication or logging, but those can be added later if you wish to include them. In order to make this as useful and flexible as possible, the code below allows you to connect to any remote port you like. This will allow you to proxy HTTP, FTP, SMTP… whatever TCP based protocol you like. In order for this to be useful, you’ll probably want to upload the script to your hosting provider and run it. This will allow it to run continuously even if you’re not connected to the Internet. You can even tell your friends about it so that they can use the proxy server too.
Let’s begin. If you closed your python window, open it again by typing python. Then,
for i in range(2**20):
print "I am a dummy, I will not mess with \
proxy servers until I know what I'm doing..."
(make sure you press enter *twice* after that list line of code)
I’d love to hear your comments, so let me know if you found this helpful.




this is not helpful yet.
This was a rant or a spoof on so many tutorials I’ve seen aimed at beginning programmers that either teach bad practices or use a horribly bad sample application as the goal. I will post links here when I spot another one, but they’re relatively common unfortunately.
I found this in rather poor taste.
This isn’t very funny at all.
not funny, sorry.