[Xitami] intranet security
Michael
xitami@lists.xitami.org
Mon, 25 Mar 2002 21:03:29 -0500
On 25 Mar 2002 at 12:55, Stefan Pantazi wrote:
> Hi,
>
> You could have only one, unique URL which points to a CGI (could be
> anything, console application, LRWP-based, etc) which looks at the IP of the
> user and then routes the request through the CGI response which is a
> dynamically generated temporary page with a refresh of 1 second pointing to
> the to the appropriate URL (either public or private).
> I hope this helps.
>
> Stefan
Stefan is on the right track. Redirecting by ip is easy esp when you
are willing to use cgi and ssi. There's no need for any time lapse
or refresh.
Just create a simple script to redirect based upon ip. You can
easily redirect those outside the intranet one direction and those
inside the intranet another direction.
I've done this a many times over the years. I keep an example at
http://alft.net/software/ip2block/ Obviously you create your own to
do whatever you want.
One of the things I *really* like about (windows) Xitami is the ability
to use simple win32 binaries with full ssi. After years of severe
limitations and abuse by isp's, I have complete freedom. Xitami
just fell out of the blue sky and blessed my computer. Praise be!
~Michael