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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI - Quick Development

Status
Not open for further replies.

mtorbin

Technical User
Nov 5, 2002
369
US
I have a SSI that I want to build and I know it can be done (because... sigh... I did it so long ago but I can't remember how it's done).

I have a chunk of html code that I want to show up ONLY if a user is from a certain domain for example.

PERL STRUCTURE

#!/usr/bin/perl -wT
use strict;
use CGI ':standard''

my $userIP = [getUsersIPAddress];

if $userIP = 1.2.3.4.5 {

<h1>You are from 1.2.3.4.5</h1>
}

else {
<h1>You are a LIAR!</h1>
}


Any ideas?

- MT
 
Thanks Chris... late last night I figured this one out and that's exactly what I did. Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top