| Author |
Message |
kkibak
Joined: Aug 7th, 2008
Posts: 7
|
|
Posted: Aug 10th, 2008 at 8:18pm
Post subject: Actual cloaking?
|
|
Hi,
I was just wondering if there's any way for you to 'actually' cloak your links in the more historical sense - that is, is there any way to specify an IP or IP range for which something else should come up? Just to be really clear, if there is, for example, a competitor with an ip of 12.34.56.78 is there any way I can make my links go somewhere else when he clicks them?
If not, could you consider this for a new feature? Should be pretty easy to add.
Thanks
|
|
|
Back to top
|
|
|
|
kkibak
Joined: Aug 7th, 2008
Posts: 7
|
|
Posted: Aug 10th, 2008 at 10:45pm
Post subject: Re: Actual cloaking?
|
|
I'm sorry this question was actually regarding the self-hosted version of tracking 202, in case that has any relevance. Didn't see the separate section, sorry about that :(
|
|
|
Back to top
|
|
|
|
T202Wes
Joined: Oct 20th, 2007
Posts: 2432
|
|
Posted: Aug 11th, 2008 at 11:23am
Post subject: Re: Actual cloaking?
|
|
No Problem, this forum works.
Well the best way to do that would just be to program it right in, with a little PHP you can do it. We probably wouldn't put it in as it isn't related exactly to PPC tracking, but more so custom landing page scripts.
Are you trying to block an IP-NETRANGE, ie: 122.122.1.1-122.122.1.255, or just an individual IP.
Its pretty easy to do, if you were just trying to do something custom for the ip: 111.111.111.111 for instance you'd do this.
<? if ($_SERVER['REMOTE_ADDR'] == '111.111.111.111') { /*do this*/ } ?>
|
|
|
Back to top
|
|
|
|
kkibak
Joined: Aug 7th, 2008
Posts: 7
|
|
Posted: Aug 11th, 2008 at 4:20pm
Post subject: Re: Actual cloaking?
|
|
Yeah, I know how to write something that does the trick in PHP (I'll paste my version below), but what i don't know is how to apply it when using prosper's direct linking - is there a certain .php file I'd edit or something?
Here's my version for blocking a whole range:
<?
$visitor = $_SERVER['REMOTE_ADDR'];
$broken = explode('.',$visitor);
$classC = $broken[0].'.'.$broken[1].'.'.$broken[2];
if($classC=='xx.xxx.xxx') {
header('Location: http://www.SendThemHere.com');
}
?>
Thanks for the help, btw!
|
|
|
Back to top
|
|
|
|
T202Wes
Joined: Oct 20th, 2007
Posts: 2432
|
|
Posted: Aug 12th, 2008 at 4:13am
Post subject: Re: Actual cloaking?
|
|
Hmm if your using the DIRECT LINK, why would any intermediate landing page .php files be needed at all?
Are you trying to accomplish something in addition to the direct link setup?
|
|
|
Back to top
|
|
|
|
kkibak
Joined: Aug 7th, 2008
Posts: 7
|
|
Posted: Aug 12th, 2008 at 11:57am
Post subject: Re: Actual cloaking?
|
|
Basically I want the direct link to work as normal, but, if someone from a certain ip address (or ip range) clicks the link, it should redirect somewhere else instead of redirecting to the normal place. I thought this would be possible because of the 'cloaking' redirects that currently take place... it seems like you could slip some php code into one of the redirect files to check the ip address prior to redirect and, if necessary, send the user somewhere else.
|
|
|
Back to top
|
|
|
|
T202Wes
Joined: Oct 20th, 2007
Posts: 2432
|
|
Posted: Aug 13th, 2008 at 2:23am
Post subject: Re: Actual cloaking?
|
|
|
kkibak wrote:
|
|
Basically I want the direct link to work as normal, but, if someone from a certain ip address (or ip range) clicks the link, it should redirect somewhere else instead of redirecting to the normal place. I thought this would be possible because of the 'cloaking' redirects that currently take place... it seems like you could slip some php code into one of the redirect files to check the ip address prior to redirect and, if necessary, send the user somewhere else.
|
If you want to do this, you'll need your own .php page.
And your text-ad destination URLs, should point to like your own redirect php page, and then IF a certain ip direct to wherever, and if not, direct to the would be T202 destination url.
Does that help at all?
|
|
|
Back to top
|
|
|
|
kkibak
Joined: Aug 7th, 2008
Posts: 7
|
|
Posted: Aug 13th, 2008 at 12:30pm
Post subject: Re: Actual cloaking?
|
|
Yep, that's actually what I'm doing right now. Thanks a ton for all the replies/help. I was just wondering if there was a built in feature for that kind of thing.
Thanks again
|
|
|
Back to top
|
|
|
|