'Tweaking' telnet links
Bill Trefzger
billt at nist.gov
Thu Sep 18 09:41:45 EDT 1997
Angus,
The IP of the user is a standard CGI environment variable, which means it
is fairly straight-forward to create a script which does what you want. The
initial link would go to a script which would redirect to the desired URL,
based on the users IP. We have several implemented in PERL, but any
scripting that works in a CGI environment would work.
Many other middleware programs could also handle this. I don't have a
specific URL handy, but start browsing the perl site
(http://www.perl.com/perl/index.html) and you'll probably find numerous
examples which do similar things.
Bill
At 09:32 PM 9/17/97 -0700, Angus Waddell wrote:
>
>Hi all -
>
>Just a 'small' problem that I needed some help on if anyway has any ideas :-
>
>One of our campuses cannot access a unix box via telnet, although they
>assure us it is not a problem at there end....so my question is
>
>Is there anyway to do something like the following via html?
>
> if ip_address = 144.xxx.xxx.xxx then
> <a href="telnet://some.other.server">
> else
> <a href="telnet://the.normal.server">
> end
>
>Any help would be very much appreciated.
>
>Thanks
>
>Angus
>------------------------------
>Angus Waddell
>RMIT Central Library
>Systems Technical Support
>+61 3 9660 3983
>------------------------------
>
>
>
Bill Trefzger
NIST Electronic Information phone:(301)975-2146
& Publications Program fax:(301)869-8071
Bldg 101, Room E106 mailto:billt at nist.gov
Gaithersburg, MD 20899 http://nvl.nist.gov/
More information about the Web4lib
mailing list