Hello Alex,
I've tried it, but I can't get it work. That's what I wanted and what I've done.
I wanted to protect templates from domain1.com to be used from any other domains using GM.
So I created a global tag named domain_check with the code below.
-------------
sub {
my $tags = shift;
if ($ENV{HTTP_HOST} ne 'domain1.com') {
return '<meta http-equiv="refresh" content="0;URL=http://www.domain.com">';
}
-------------
Then I inserted <%domain_check%> to the head of the template and accessed to GM using a domain diferent from domain1.com (also tried it inserting it to the body). Then I got this piece of text in the body: <meta http-equiv="refresh" content="0;URL=http://www.domain.com>, but nothing happened.
Then I tried accessing it with domain1.com, but I got the same piece of code.
Please, could you give me a hand?
Thanks a lot,
Narcís Vilà
I've tried it, but I can't get it work. That's what I wanted and what I've done.
I wanted to protect templates from domain1.com to be used from any other domains using GM.
So I created a global tag named domain_check with the code below.
-------------
sub {
my $tags = shift;
if ($ENV{HTTP_HOST} ne 'domain1.com') {
return '<meta http-equiv="refresh" content="0;URL=http://www.domain.com">';
}
-------------
Then I inserted <%domain_check%> to the head of the template and accessed to GM using a domain diferent from domain1.com (also tried it inserting it to the body). Then I got this piece of text in the body: <meta http-equiv="refresh" content="0;URL=http://www.domain.com>, but nothing happened.
Then I tried accessing it with domain1.com, but I got the same piece of code.
Please, could you give me a hand?
Thanks a lot,
Narcís Vilà