Affiliate link hiding

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Clam
    Confirmed User
    • Sep 2002
    • 127

    #1

    Affiliate link hiding

    Is there a script that does affiliate link hiding and counting of out-clicks? I could do this with a traffic trade script, but that is more software than I really want, or I could write it myself, but I have enough on my plate already; I'd rather buy a script...
  • Klen
    • Aug 2006
    • 32234

    #2
    There used to be one free script but it was terribly written and using it on big traffic would backfire. I am sure there are other scripts which doing same, but writing it on your own is so trivial so that is better choice anyway.

    Comment

    • Clam
      Confirmed User
      • Sep 2002
      • 127

      #3
      Yeah, you are probably right. I guess I'll get to work... :D

      Comment

      • money biz
        Confirmed User
        • Jan 2003
        • 1033

        #4
        Maybe a short url script? I use one off codecanyon for link tracking.

        Comment

        • ZTT
          Confirmed User
          • Apr 2019
          • 659

          #5
          If all you want is a basic way to to hide the link code from the visitor and count the clicks it's as simple as something like:

          yoursite.com/link.php?url=pornosite.org

          link.php:

          <?php

          $url = $_GET['url'];

          $file = $url;

          $hit = file_get_contents ($file);

          $hit = intval($hit) + 1;

          file_put_contents($file, $hit);

          header('Location: https://www.'.$url.'/affiliatecodestuff=123456');

          ?>

          Obviously you can add to that with more security or logging, preventing the same IP registering more than once, etc.
          __________________

          Comment

          • WiredGuy
            Pounding Googlebot
            • Aug 2002
            • 34517

            #6
            You could use .htaccess if you're not looking for anything overly complex.
            WG
            I play with Google.

            Comment

            • AdsEmpire
              Confirmed User
              • Jul 2021
              • 797

              #7
              Originally posted by Clam
              Is there a script that does affiliate link hiding and counting of out-clicks? I could do this with a traffic trade script, but that is more software than I really want, or I could write it myself, but I have enough on my plate already; I'd rather buy a script...
              you could use easiest solution like bit.ly
              Viktoriia BizDev at AdsEmpire *[email protected]*
              Telegram: @viktoriia_adsempire

              Comment

              Working...