Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Adding proxy capability to my PHP webapp

I need to allow authed users into my network through my application

10:20 pm on Jul 31, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:May 31, 2006
votes: 0

I'm not even sure if what I want to do is possible or not, but the more I search the less I seem to find.

I'm writing an application that acts as a kind of gateway to web resources. It authenticates users and controls permissions to what they can and cannot view through the app... the resources are just listed as urls. For example, Bob the user can access [bob.example.com...] and Sally the user can access [sally.example.com...] by logging into my application and choosing that resource from a menu.

Currently my application just acts like a middleman with some backend talking between my app and the resource to ensure the resource isn't being accessed remotely.

What I would really like is to incorporate a proxy, so that Bob and Sally could log into my application and gain access to a resource which my server has access to, but the outside world does not. I've seen a few open source php proxy packages, but they seem to be poorly supported and outdated. Ideally I would like to find a class that can handle the more tricky bits, but so far I've come up empty.

Many of the applications my users need access to incorporate javascript and flash... so the proxy needs to be able to support both those things AND be utterly transparent to the user.

Is this even possible? I've worked very little with http requests and headers, so I'm not even sure what all is involved, though I'm fairly certain it's more than simply re-writing a few bits of the incoming pages.

Thanks for any help.

2:40 pm on Aug 15, 2009 (gmt 0)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 3

I'm a little confused here ... are users bob and sally within your local network? Or accessing from an external node?