Aspies For Freedom

Full Version: Setting up my own html proxy server...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok chaps and chapettes...

I'd apprieciate some help...

I run a server, just a personal one on a dsl with 1.3 megabit upload... and I already use it as a 1TB file server and will be hosting a normal site. It also d/loads torrents 24/7 Rolleyes lol, and acts as a wireless media fileserver for the house Smile

I access it on the move using a mobile phone and an eeepc... BUT the mobile phone provider runs a crappy proxy that blocks a lot of sites... I cant access or trust other proxy sites either... I could surf through my remote desktop but that is slow and puts a heavy load on the server...

SO, what I want to do is host my own personal proxy server, I tried a cgi script and apache but kept getting internal server error messages etc... so starting from scratch, can anyone help me?

Its running Windows XP Pro and I dont want to change for the fact it does everything else already and i'm a GUI man not a console man...

Thanks in advance,

Matt
Oh and just to add, I want this like a http proxy where I go to it, and then type in the URL I wish to goto Smile
If you want to run a public server, doing it on windows is a stupid idea.
Anyway....

3 parts:
1 - a frames page with a narrow frame at the top and the form
2 - the form
3 - the actual proxy

For 3, in web.py i'd do this:

import urllib2
proxy_url = "http://your-ip-here"
class proxy:
   def GET(self,name):
          segments = name.split('/')
          last_seg = segments[len(segments)]
          print  urllib2.urlopen(name).read().replace(name.split(last_seg)[0],proxy_url + segments[0:len(segments)])
urls = ('/(.*)','proxy')

# standard web.py stuff here

more info - http://webpy.org

Note that this will probably break on pages that reference other sites and the code above is untested
Ok cheers...

Yes I KNOW people hate windows blah blah... its only a private server so its me and a couple of friends and family that use it...

Cheers for the heads up I will give it a go :-)
If you're running anything on the public internet, security is an important concern Smile
Agreed... I run my file server using both stunnell and a secure login. I understand linux is more 'hack proof' but I would wonder what lengths someone would goto to access a server with no useful use or data to nick or destroy?
Random script kiddies WILL try and break in if you're running anything in public. I get constant scans from korean script kiddies.
Wait, Korea?

Damned script kiddies...

robexib Wrote:
Wait, Korea?

Damned script kiddies...


They're an international phenomenon - or at least their bot armies are.

bump..
Why?



--
message too short my left foot.
why do you do the things you do?
...

oh god, don't send me down that path LOL
Reference URL's