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
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