![]() | | ||||||||
| | #1 |
| Karl Thomas War Room Member Join Date: Dec 2008 Location: Toronto
Posts: 755
Thanks: 170
Thanked 69 Times in 54 Posts
|
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.
|
| | |
| | #2 |
| The WordPress Tutor War Room Member Join Date: Sep 2008 Location: Between London & Manchester, UK
Posts: 248
Blog Entries: 1 Thanks: 130
Thanked 42 Times in 38 Posts
|
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(); ?> |
| | |
| | |
| | #3 |
| Peaceful Warrior Join Date: Jul 2008 Location: South West England
Posts: 174
Thanks: 34
Thanked 21 Times in 21 Posts
|
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 | |
| | |
| | #4 |
| Karl Thomas War Room Member Join Date: Dec 2008 Location: Toronto
Posts: 755
Thanks: 170
Thanked 69 Times in 54 Posts
|
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 |
| | |
| | #5 |
| Senior Warrior Member War Room Member Join Date: Mar 2005 Location: Canada
Posts: 2,066
Thanks: 42
Thanked 160 Times in 152 Posts
|
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 |
|
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 | |
| | |
| | #6 | |
| IdentityCloaker.com War Room Member Join Date: Oct 2003 Location: Prague, Czech Republic.
Posts: 273
Thanks: 13
Thanked 12 Times in 10 Posts
| Quote:
Tomas | |
| STOP surfing the Internet - someone may be watching... IdentityCloaker.com Join our generous affiliate program - Excellent conversion rate, unique product, lifetime commissions! | ||
| | |
| | #7 |
| Advisor of Intelligence War Room Member Join Date: May 2007
Posts: 1,000
Thanks: 25
Thanked 102 Times in 19 Posts
| |
| | |
| | #8 | |
| IdentityCloaker.com War Room Member Join Date: Oct 2003 Location: Prague, Czech Republic.
Posts: 273
Thanks: 13
Thanked 12 Times in 10 Posts
| Quote: 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! | ||
| | |
| | #9 |
| Karl Thomas War Room Member Join Date: Dec 2008 Location: Toronto
Posts: 755
Thanks: 170
Thanked 69 Times in 54 Posts
|
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.
|
| | |
| | #10 |
| IdentityCloaker.com War Room Member Join Date: Oct 2003 Location: Prague, Czech Republic.
Posts: 273
Thanks: 13
Thanked 12 Times in 10 Posts
|
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! | |
| | |
![]() |
|
| Tags |
| cloaked, link, php, redirect |
| Thread Tools | |
| |
![]() |