How can a Publisher Hide/Cloak the freakin '?hop=' ???

Discussion in 'ClickBank' started by imarketing101, Aug 17, 2008.

  1. #1
    I am creating a site for clickbank and I want to redirect it so that the affiliate IDs don't show.

    For example, if an affiliate were to come to my site using his/her affiliate ID, it would redirect from http://www.mysite.com/?hop=AFFILIATE_ID to http://www.mysite.com/

    I read that it can be done via php or htaccess... but how?

    Also, the sale must be credited towards the affiliate and any tids they used tracked. Is it possible?
    I want to do this so that:
    1. I protect my affiliates
    2. I increase their conversions and while allowing them to track it.

    Thanks! :)
     
    imarketing101, Aug 17, 2008 IP
  2. Exilus

    Exilus Banned

    Messages:
    632
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    redirect. As soon as the affiliate enters your site, redirect it to http://www.yoursiteurl.com. The tracking cookie being still activated the affiliate is still going to get commission from the sale, however the hop= is gone.
     
    Exilus, Aug 18, 2008 IP
  3. web_18designer

    web_18designer Peon

    Messages:
    790
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    More specifically, on your index page make a condition to check if thers the "hop" QueryString Available in the url (http://www.mysite.com/?hop=AFFILIATE_ID).

    - If thers a hop - redirect to the site url: http://www.mysite.com/

    - If thers NO hop - Do Nothing.

    Its important that you make that condition or you will end up redirecting to the same page infinitely...


    You can also do the check on your main page and then redirect to a secondary page but that wouldnt be neath...

    Anyways good luck!
     
    web_18designer, Aug 18, 2008 IP
  4. imarketing101

    imarketing101 Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How do you do that? PHP redirect? OR Htaccess?
     
    imarketing101, Aug 18, 2008 IP
  5. box2s

    box2s Peon

    Messages:
    381
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am thinking a simple javascript will do it i guess?
     
    box2s, Aug 18, 2008 IP
  6. web_18designer

    web_18designer Peon

    Messages:
    790
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Php redirect is the way to go
     
    web_18designer, Aug 18, 2008 IP
  7. web_18designer

    web_18designer Peon

    Messages:
    790
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you can do it with javascript as well but better if its done server site (php, asp, cold fusion etc)
     
    web_18designer, Aug 18, 2008 IP
  8. imarketing101

    imarketing101 Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Do you know where I can find the code to setup a php redirect that has the condition that the link must have ?hop= at the end???

    PHP ain't my forte... :D
     
    imarketing101, Aug 18, 2008 IP
  9. web_18designer

    web_18designer Peon

    Messages:
    790
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #9
    here you go:

    <?php if(isset($_GET['hop'])){
    header( 'Location: http://www.yoursite.com/' ) ;
    }?>
     
    web_18designer, Aug 18, 2008 IP
  10. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #10
    Place this at the top of your file -

    
    <?php
    if (isset($_GET['hop']) && !empty($_GET['hop'])) {
    
    header( 'Location: http://www.yoursite.com/' ) ;
    
    }
    
    ?>
    
    
    PHP:
     
    mikey1090, Aug 18, 2008 IP
  11. web_18designer

    web_18designer Peon

    Messages:
    790
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #11

    Actually i wouldnt use that code, the && !empty($_GET['hop']) should be removed like my previous post...... so that whenever thers the hop querystring its removed leaving a clean url regardingless of having an affiliate id or not ;)
     
    web_18designer, Aug 18, 2008 IP
  12. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #12
    You're quite right. I shouldn't write code when tired ;)
     
    mikey1090, Aug 18, 2008 IP
  13. seowarrior

    seowarrior Active Member

    Messages:
    486
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #13
    seowarrior, Aug 18, 2008 IP
  14. web_18designer

    web_18designer Peon

    Messages:
    790
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #14
    web_18designer, Aug 18, 2008 IP
  15. imarketing101

    imarketing101 Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Hey, thanks heaps for the help!

    This makes it so much easier!
     
    imarketing101, Aug 18, 2008 IP