Ovid Says >
To be honest, while I don't know a simple answer for this, the reality is
that this answer doesn't work very well. People can easily type stuff like:
http://blogs.server.somehost.co.uk/
http://foo.co.uk/
https://www.host.com/
Keith Says >
Hmm... I agree with you. It's the same
--- Keith Szlamp <[EMAIL PROTECTED]> wrote:
> my $domain = $ENV{'SERVER_NAME'};
> $domain =~ s/^http:\/\/www.//;
> $domain =~ s/^http:\/\///;
>
> Regardless of what they enter, you should end up with just 'domain.tld' or
> 'sub.domain.tld' if the name being forward using sub domains - like many
>
> We have a fairly simple redirect script a url is entered, and even tho
> there are directions to not enter the "http://www"; sometimes we get it
> or "http://";... what is the simplest method to extract just the domain
> name if a "http://www.somedomain_name.com"; or
> "http://somedomain_name.com
Mike Blezien wrote:
Hello,
We have a fairly simple redirect script a url is entered, and even tho
there are directions to not enter the "http://www"; sometimes we get it
or "http://";... what is the simplest method to extract just the domain
name if a "http://www.somedomain_name.com"; or
"http
On Monday, Jul 14, 2003, at 09:37 US/Pacific, Mike Blezien wrote:
Hello,
We have a fairly simple redirect script a url is entered, and even tho
there are directions to not enter the "http://www"; sometimes we get it
or "http://";... what is the simplest method to extract just the domain
name i
Hello,
We have a fairly simple redirect script a url is entered, and even tho there are
directions to not enter the "http://www"; sometimes we get it or "http://";...
what is the simplest method to extract just the domain name if a
"http://www.somedomain_name.com"; or "http://somedomain_name.co