Sorry, another php script/cloaking question

11 replies
Please, does anyone have a script (php) that would work to cloak an affiliate link - for uploading in (Hostgator) cPanel.

Or, to put it another way, if anyone knows why I can only get http://www.mysite.com/product.shtml?hop=myID, showing in my address bar...

when I've "saved as"
<?php
header("Location: http://myID.product.hop.clickbank.net");
?>
into notepad; as product.php
then uploaded the file.

(advice in threads from other Warriors is greatly appreciated, but I've still not been able put this one to bed yet)
:confused:

thanks
#php #question #script or cloaking
  • Profile picture of the author pjCheviot
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[516301].message }}
    • Profile picture of the author Ian Jackson
      Originally Posted by pjCheviot View Post

      Ian

      That is the way that particular snippet of php script will work. Unless you change the script you will not change the outcome.

      Sorry.
      Ah, my script/php newbieness shines through!! I don't even know which part of
      <?php
      header("Location: http://www.mysite.com/product.shtml?hop=myID");
      ?>
      represents script or php...
      {{ DiscussionBoard.errors[516401].message }}
  • Profile picture of the author Micheal Perkins
    I just found a really cool cloaking tool. It encrypts the link so it is impossible for anyone to see where the link is going and then steal your commission.

    Here's how it works:

    1. Enter your affiliate link in the field provided.

    2. Enter he location where you want it to go.
    So if you want to bypass a squeeze page and send them straight to the sales page you can.
    3. The program will save your new encrypted link as a .html file. There is a field for you to name the file with whatever name you want. You then upload the file to your server and make that file the destination on your website.

    If anyone needs more of an explanation you can PM me and I will try to explain in more detail.

    Here is the link to the cloaker. G-Lock Affiliate Link Cloaker

    To your success,
    Mike
    Signature

    {{ DiscussionBoard.errors[516328].message }}
  • Profile picture of the author pjCheviot
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[516416].message }}
    • Profile picture of the author Ian Jackson
      Hi pj

      Absolutely, I'm after a cloaking link.

      I quote from Steven Wagenheim's post recently
      "...At the end of the review, put your aff link. Make sure it's cloaked. I use a PHP script that I wrote myself..."

      That's fine if one knows how to! (awaiting PM reply from him also)

      Advice appreciated, & I'll do a spot of Googling meanwhile - but I wouldn't recognise a good from bad source. (also trying to keep to free stuff for a few weeks)

      Cheers
      ij
      {{ DiscussionBoard.errors[516450].message }}
  • Profile picture of the author Fairuz Talib
    If you just want to hide your affiliate link, then the method you use is
    good enough.

    <?php
    header("Location: http://myID.product.hop.clickbank.net");
    ?>
    When you promote the product, you just send your visitors to
    product.php and it will redirect the visitors to the product page.
    The reason why you should cloak your affiliate link is you don't want
    people to replace yor id with theirs and they'll get the commision
    (discount) instead.

    Howver, cloaking does not guarantee people cannot hijack your affiliate
    link. If people want to hijack they'll find a way.

    Fairuz Talib
    {{ DiscussionBoard.errors[516810].message }}
    • Profile picture of the author Ian Jackson
      Originally Posted by Fairuz Talib View Post

      If you just want to hide your affiliate link, then the method you use is
      good enough.



      When you promote the product, you just send your visitors to
      product.php and it will redirect the visitors to the product page.
      The reason why you should cloak your affiliate link is you don't want
      people to replace yor id with theirs and they'll get the commision
      (discount) instead.

      Howver, cloaking does not guarantee people cannot hijack your affiliate
      link. If people want to hijack they'll find a way.

      Fairuz Talib
      Thanks Fairuz, but I was trying this script, over and over. It seems Hostgator/cPanel may not like it, since it didn't hide anything. Maybe cPanel has a different script?

      Cheers
      ij
      {{ DiscussionBoard.errors[517346].message }}
  • Profile picture of the author GeorgR.
    hello ian,

    why do you want this to show in the adress bar???

    It works, you can double-check checking out at clickbank and look for "[affiliate=YOURID]" at the bottom.
    Signature
    *** Affiliate Site Quick --> The Fastest & Easiest Way to Make Affiliate Sites!<--
    -> VISIT www.1UP-SEO.com *** <- Internet Marketing, SEO Tips, Reviews & More!! ***
    *** HIGH QUALITY CONTENT CREATION +++ Manual Article Spinning (Thread Here) ***
    Content Creation, Blogging, Articles, Converting Sales Copy, Reviews, Ebooks, Rewrites
    {{ DiscussionBoard.errors[516822].message }}
    • Profile picture of the author Ian Jackson
      Originally Posted by GeorgR. View Post

      hello ian,

      why do you want this to show in the adress bar???

      It works, you can double-check checking out at clickbank and look for "[affiliate=YOURID]" at the bottom.

      Hi GeorgR

      My point was that after having tried various cloaking options (in terms of my skillset), http://www.mysite.com/product.shtml?hop=myID was showing in my address bar, and I didn't want it to.

      I seem to have resolved the issue now, from using the link posted by Micheal, above. I've emailed the product owner, who I hope can verify that any purchase is indeed going via my aff link now.

      Cheers
      ij
      {{ DiscussionBoard.errors[517320].message }}
  • Profile picture of the author pjCheviot
    Banned
    Ian

    You don't need to go to the owner - simply follow your own link right up to the Clickbank Secure Order Form - at the foot of that you should see [affiliate=you!]

    HTH
    {{ DiscussionBoard.errors[517334].message }}
  • Profile picture of the author webpromotions
    easiest way is a simple iframe redirect:
    <html>
    <iframe src=http://yoursitehere.com width=100% noborder height=100% no scroll>
    </html>
    {{ DiscussionBoard.errors[517381].message }}

Trending Topics