Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 03-08-2009, 07:34 PM   #1
Karl Thomas
War Room Member
 
Vanquish's Avatar
 
Join Date: Dec 2008
Location: Toronto
Posts: 755
Thanks: 170
Thanked 69 Times in 54 Posts
Contact Info
Send a message via MSN to Vanquish Send a message via Skype™ to Vanquish
Default PHP redirect for cloaked link

How do I cloak my link using PHP. Keep in mind i do not know what PHP means but i have heard it is the safest and most effective way to cloak your link any advice/ tutorials would be apprechiated.
Vanquish is offline   Reply With Quote
Old 03-08-2009, 07:50 PM   #2
The WordPress Tutor
War Room Member
 
danielmcclure's Avatar
 
Join Date: Sep 2008
Location: Between London & Manchester, UK
Posts: 248
Blog Entries: 1
Thanks: 130
Thanked 42 Times in 38 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to danielmcclure
Default Re: PHP redirect for cloaked link

Create a text file with the code posted below and name it PRODUCTNAME.php then link to that from your page.

<?php
$url='PRODUCTURL';
header("Location: $url");
exit();
?>

danielmcclure is offline   Reply With Quote
Old 03-08-2009, 08:07 PM   #3
Peaceful Warrior
 
John Wilkes's Avatar
 
Join Date: Jul 2008
Location: South West England
Posts: 174
Thanks: 34
Thanked 21 Times in 21 Posts
Default Re: PHP redirect for cloaked link

A way to cloak your link for free would be to create an intermediate page to which you link, instead of directly.
You can create this in a simple text editor. It is only a couple of lines. Do not add anything else or it will not work.

you would create your affiliate link as



<?php

header("Location:http://www.theaddress-you-want-to-send-the-visitor.too");

?>



Save this with a "safe" sounding name or the name of the software you are promoting as a php file.
For this example we could call it "secure.php"



This is now the file that you link to, instead of the final destination , (e.g. http://www.mydomain.com/secure.php)



or for a text link, inserted as html code in your article page,



<a href=" http://www.mydomain.com/secure.php">Click here for Article </a>



This will be the address that shows up at the bottom of the web page when your visitor hovers or clicks on the link, not your affiliate link. When the visitor arrives at your php page they are immediately forwarded to the sales page address contained with in it, with your affiliate link added. They will probably still realise at this point it is an affiliate link but they will not be able to interfere with it.



I personally use and recommend a completely different approach. I believe in being open and honest. When I have an affiliate link, I disclose it.

Like What I have to say here on the forum? Check out my primary blog.
Healthy Profits - Green PLR
John Wilkes is offline   Reply With Quote
Old 03-08-2009, 08:32 PM   #4
Karl Thomas
War Room Member
 
Vanquish's Avatar
 
Join Date: Dec 2008
Location: Toronto
Posts: 755
Thanks: 170
Thanked 69 Times in 54 Posts
Contact Info
Send a message via MSN to Vanquish Send a message via Skype™ to Vanquish
Default Re: PHP redirect for cloaked link

i tried to cloak via the php way and got this error. Could it be because i have word press installed using fantastico i have no idea what it means.

Parse error: syntax error, unexpected ':' in /home/vantage/public_html/reco/index.php on line 2
Vanquish is offline   Reply With Quote
Old 03-08-2009, 10:04 PM   #5
Senior Warrior Member
War Room Member
 
Join Date: Mar 2005
Location: Canada
Posts: 2,066
Thanks: 42
Thanked 160 Times in 152 Posts
Default Re: PHP redirect for cloaked link

May be easier for you to just buy a link cloaker script something like this WSO http://www.warriorforum.com/warrior-...s-seconds.html
rgds
Zm

Quote:
Originally Posted by Vanquish View Post
How do I cloak my link using PHP. Keep in mind i do not know what PHP means but i have heard it is the safest and most effective way to cloak your link any advice/ tutorials would be apprechiated.

Get FREE Autoresponder For Wordpress at AutoresponderForWordpress.com

Exclusive Private Label Rights To A Brand New Video PLR Business In A Box And Complete Sales Funnel. Every Single Month at DigitalInternetBusiness.com
Zubair Zm is offline   Reply With Quote
Old 03-08-2009, 10:43 PM   #6
IdentityCloaker.com
War Room Member
 
tomfra's Avatar
 
Join Date: Oct 2003
Location: Prague, Czech Republic.
Posts: 273
Thanks: 13
Thanked 12 Times in 10 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to tomfra
Default Re: PHP redirect for cloaked link

Quote:
Originally Posted by Vanquish View Post
i tried to cloak via the php way and got this error. Could it be because i have word press installed using fantastico i have no idea what it means.

Parse error: syntax error, unexpected ':' in /home/vantage/public_html/reco/index.php on line 2
This simply means that you put the colon sign where it should not be. If you are using the code posted by danielmcclure, it's a semicolon at the end of line 2, not a colon.

Tomas

STOP surfing the Internet - someone may be watching... IdentityCloaker.com
Join our generous affiliate program - Excellent conversion rate, unique product, lifetime commissions!
tomfra is offline   Reply With Quote
Old 03-08-2009, 11:43 PM   #7
Advisor of Intelligence
War Room Member
 
Nicholas Ho's Avatar
 
Join Date: May 2007
Posts: 1,000
Thanks: 25
Thanked 102 Times in 19 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Yahoo to Nicholas Ho Send a message via Skype™ to Nicholas Ho
Default Re: PHP redirect for cloaked link

<?php

header('Location:http://www.theaddress-you-want-to-se...tor.too');

?>


It is ' not " .
Nicholas Ho is offline   Reply With Quote
Old 03-08-2009, 11:59 PM   #8
IdentityCloaker.com
War Room Member
 
tomfra's Avatar
 
Join Date: Oct 2003
Location: Prague, Czech Republic.
Posts: 273
Thanks: 13
Thanked 12 Times in 10 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to tomfra
Default Re: PHP redirect for cloaked link

Quote:
Originally Posted by Nicholas Ho View Post
<?php

header('Location:http://www.theaddress-you-want-to-se...tor.too');

?>


It is ' not " .

It can be both apostrophy - ' or standard quote sign - " as long it's not mixed. If you use the apostrophy sign to enclose the string, you cannot use variables in it.

OK:

header('Location: someURL');

OK:

header("Location: someURL");

OK:

$url = 'someURL';
header("Location: $url");

Wrong:

$url = 'someURL';
header('Location: $url');


Tomas

STOP surfing the Internet - someone may be watching... IdentityCloaker.com
Join our generous affiliate program - Excellent conversion rate, unique product, lifetime commissions!
tomfra is offline   Reply With Quote
Old 03-09-2009, 12:08 AM   #9
Karl Thomas
War Room Member
 
Vanquish's Avatar
 
Join Date: Dec 2008
Location: Toronto
Posts: 755
Thanks: 170
Thanked 69 Times in 54 Posts
Contact Info
Send a message via MSN to Vanquish Send a message via Skype™ to Vanquish
Default Re: PHP redirect for cloaked link

Thanks, that worked, how would i apply this to a picture so when a user scrolls over a picture they see the .php instead of the aff link.
Vanquish is offline   Reply With Quote
Old 03-09-2009, 12:12 AM   #10
IdentityCloaker.com
War Room Member
 
tomfra's Avatar
 
Join Date: Oct 2003
Location: Prague, Czech Republic.
Posts: 273
Thanks: 13
Thanked 12 Times in 10 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to tomfra
Default Re: PHP redirect for cloaked link

Link to the redirect .php file instead of the aff. link - simply link the image to http://yourdomain.com/myphpredirect.php instead of the original link.

Tomas

STOP surfing the Internet - someone may be watching... IdentityCloaker.com
Join our generous affiliate program - Excellent conversion rate, unique product, lifetime commissions!
tomfra is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
cloaked, link, php, redirect

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 01:14 AM.