PHP/HTM Gurus - Need Help with Cloaking/Redirect

9 replies
Hi all,

I have used redirects for years but I'm having a hard time getting this one to do what I want.

What I would like to accomplish is for the redirect to be cloaked as well.

So, Visitor > domain.com>redirect to affiliate link, which appears like domain.com/offer

Instead of redirecting and showing my affiliate link.

I know how to cloak, but I can't figure out how to combine the two.

I'm sure it's easy, but I just need to be pointed in the right direction.

Regards,
Chris
#cloaking or redirect #gurus #php or htm
  • Profile picture of the author Scott Carpenter
    The only thing that I can think to do is to use frames, but if I'm not mistaken, that violates TOS
    {{ DiscussionBoard.errors[390786].message }}
  • Profile picture of the author RobReynolds
    Originally Posted by tntrader View Post

    Hi all,

    I have used redirects for years but I'm having a hard time getting this one to do what I want.

    What I would like to accomplish is for the redirect to be cloaked as well.

    So, Visitor > domain.com>redirect to affiliate link, which appears like domain.com/offer

    Instead of redirecting and showing my affiliate link.

    I know how to cloak, but I can't figure out how to combine the two.

    I'm sure it's easy, but I just need to be pointed in the right direction.

    Regards,
    Chris
    Here is what I do:

    Let's say I have domain.com.

    I create a new folder for redirection, lets call it goto.
    So now, we have domain.com/goto

    Now, in the folder goto, I create an index.php file with this in it:

    <?php
    header("Location: link-goes-here");
    ?>


    (I can't post links yet)

    Now, if someone clicks on domain.com/goto/ it will take you to your affiliate link.

    You could also do domain.com/fapturbo/ --> just create an index.php file in the fapturbo directory, and put the fap turbo aff link in the code in the file.

    Is this what you are looking for? I hope this helps!
    {{ DiscussionBoard.errors[390873].message }}
  • {{ DiscussionBoard.errors[390887].message }}
    • Profile picture of the author Martin Avis
      Originally Posted by TheRichJerksNet View Post

      Why? He is neither a programmer selling his services nor offering to pay for a solution.

      Here seems the perfect place to ask questions.

      Martin
      Signature
      Martin Avis publishes Kickstart Newsletter - Subscribe free at http://kickstartnewsletter.com
      {{ DiscussionBoard.errors[391028].message }}
      • Profile picture of the author tntrader
        Originally Posted by Martin.Avis View Post

        Why? He is neither a programmer selling his services nor offering to pay for a solution.

        Here seems the perfect place to ask questions.

        Martin

        That is what I thought too. Thanks!

        What TOS do iframes violate?

        Also, fiftytwoeleven, I am familiar with your method, but I once the redirect ocurrs, if I'm not mistaken, the URL will show my affiliate link.

        For example, lets say my on my blog I want to promote a clickbank ebook. Normally, I will cloak the clickbank affiliate link so that it will show up as www.blog.com/recommends/ebook

        What I am trying to accomplish is when the visitor clicks on my link, they will be redirected to the offer page, but the url will still show as whatever I want.

        This may be a bit BH for this part of the forum. Thanks you all.

        Chris
        Signature
        {{ DiscussionBoard.errors[391048].message }}
  • Profile picture of the author Tom Dean
    Chris this may help.

    It's around a 16pg guide that covers php link cloaking including step by step instructions and a line by line for ht.access editing and a sample ht.access file.

    In order to use this solution you will need a Unix/Linux web hosting account that supports .htaccess editing.

    You can download it directly here:
    http://afreelinkcloaker.com/LinkCloakingDemystified.zip

    Note - it does have a brought to you by (my link) in the pdf.

    NOT trying to self promote, it's just a decent guide and much easier to download than paste a 16 page post

    Tom
    Signature
    Rush PBN - PRO PBN SETUP - 10 PAGE SITE !!! Premium Theme
    {{ DiscussionBoard.errors[391097].message }}
    • Profile picture of the author mfurlong
      Tom:

      Thanks for the great info. in your book.

      A note and a question:

      For Windows users since these are Linux/Unix type files you probably want to use Wordpad(Write) to open these files instead of Notepad. Notepad doesn't correctly interpret the end of line characters.

      And a question. My webhost has helped me map PHP to HTML files. But there are some other things in my .htaccess file (which I think I understand). Here's an edited example:

      # -FrontPage-

      IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

      <Limit GET POST>
      order deny,allow
      deny from all
      allow from all
      </Limit>
      <Limit PUT DELETE>
      order deny,allow
      deny from all
      </Limit>
      AuthName mywebsitename.com
      AuthUserFile ...
      AuthGroupFile ...

      #AddType text/html .html
      #AddHandler application/x-httpd-php .html
      AddHandler application/x-httpd-php4 .html

      My question is where should the rewriting stuff from the example .htaccess file go in my file?

      Thanks!

      >>> Mike
      {{ DiscussionBoard.errors[403093].message }}
  • Profile picture of the author Jared Alberghini
    Chris,

    My free link cloaker will do exactly what you are asking: Free Affiliate Link Cloaker

    - Jared
    Signature

    P.S.

    Join The Future: Telekinetic Marketing

    {{ DiscussionBoard.errors[391146].message }}
  • Profile picture of the author dancom96
    Use a iFrame on that page that has 100% height, and 100% width.
    {{ DiscussionBoard.errors[401661].message }}

Trending Topics