Redirecting

Discussion in 'Programming' started by honcivex, Jun 19, 2006.

  1. #1
    I am having trouble with Commision Junction bot. Everytime I setup a new site and send traffic to my affiliates through CJ their bot will start crawling my site. I don't want CJ to know from which website I am sending the clicks from. How can I do this?
     
    honcivex, Jun 19, 2006 IP
  2. DXL

    DXL Peon

    Messages:
    380
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    They probably extract this data from the HTTP Referer header. Most user agents automatically send this when they request one page from an anchor by another. You can use JavaScript to not do this, but it's semantically incorrect and may give some problems with certain browsers.

    
    <a href="#" onclick="document.location.href = 'http://example.com/actual.page.html'; return false;">Affiliate link</a>
    
    Code (markup):
     
    DXL, Jun 20, 2006 IP