PHP redirect for cloaked link

9 replies
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.
#cloaked #link #php #redirect
  • Profile picture of the author danielmcclure
    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();
    ?>
    {{ DiscussionBoard.errors[586690].message }}
  • Profile picture of the author John Wilkes
    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.
    Signature

    Like What I have to say here on the forum? Check out my primary blog.
    Healthy Profits - Green PLR

    {{ DiscussionBoard.errors[586720].message }}
  • Profile picture of the author Vanquish
    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
    Signature
    Nothing to sell, only value to give and new knowledge to learn.
    {{ DiscussionBoard.errors[586755].message }}
    • Profile picture of the author tomfra
      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
      Signature
      STOP surfing the Internet - someone may be watching... IdentityCloaker.com
      Join our generous affiliate program - Excellent conversion rate, unique product, lifetime commissions!
      {{ DiscussionBoard.errors[586969].message }}
  • Profile picture of the author Zubair Zm
    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

    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.
    Signature

    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

    {{ DiscussionBoard.errors[586879].message }}
  • Profile picture of the author Nicholas Ho
    <?php

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

    ?>


    It is ' not " .
    {{ DiscussionBoard.errors[587073].message }}
    • Profile picture of the author tomfra
      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
      Signature
      STOP surfing the Internet - someone may be watching... IdentityCloaker.com
      Join our generous affiliate program - Excellent conversion rate, unique product, lifetime commissions!
      {{ DiscussionBoard.errors[587105].message }}
  • Profile picture of the author Vanquish
    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.
    Signature
    Nothing to sell, only value to give and new knowledge to learn.
    {{ DiscussionBoard.errors[587124].message }}
  • Profile picture of the author tomfra
    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
    Signature
    STOP surfing the Internet - someone may be watching... IdentityCloaker.com
    Join our generous affiliate program - Excellent conversion rate, unique product, lifetime commissions!
    {{ DiscussionBoard.errors[587130].message }}

Trending Topics