php redirect scripts https squid
Hi All
This has probable been asked before but here goes I want to allow wireless user access to intranet. I have setup squid as transparent proxy and created a redirect php scrip with works great untill I try to access and ssl page for login.
I have no access to change client proxy settings so I need it to be zero config on the client.
I would like to set it up so no matter what page the user tries to access they will always be retured to the page of my choice.
This is my script
#!/usr/bin/php
<?php
$temp = array();
while ( $input = fgets(STDIN) ) {
// Split the output (space delimited) from squid into an array.
$temp = split(' ', $input);
// Set the URL from squid to a temporary holder.
$output = $temp[0] . "\n";
// Check the URL and rewrite it if it matches limewire.com
if ( strpos($temp[0], "myserver") == FALSE) {
$output = "302:myserver/\n";
}
echo $output;
}
This is all very new to me
Cheers David
|