Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP proxy / redirect 1

Status
Not open for further replies.

dle46163

IS-IT--Management
Jul 9, 2004
81
US
Hi!

I'm looking for code to create a little proxy if you will. Specifically, if a user authenticates and a specific session variable is set then the "proxy" script should simply allow the traffic to pass. If the session variable is not set, the proxy script should deny the traffic. I will set the proxy script address in the web browser. The authentication script I already have done and working. Anyone know how I can read HTTP headers and simply pass them on? I *think* that's all I'll need to do. Any ideas or feedback would be great! Thanks,

-dle
 
I think your script needs to do more than pass on headers.

Your script will, at minimum, have to edit on-the-fly all URLs within a site, changing them so that they all point to the proxy, too.





Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top