1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rotate CB cookies?

Discussion in 'General Programming Chat' started by OTrap, Mar 5, 2011.

  1. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,286
    Likes Received:
    1,052
    I was curious about this awhile ago, but I didn't pursue it enough.

    A few years ago, I was doing okay on Clickbank when I ran into a problem. Someone who came across my affiliate link went to the checkout page, found my affiliate ID, and reported me to Clickbank for spamming, and I was shut down.

    At the time, I was iframing the direct link, and just dropping my cookie as an image, like this.

    Code:
    <img height="1px" width="1px" src="http://affiliate.vendor.hop.clickbank.net" />
    The problem was, no matter what, my affiliate ID was still always (and still is) available at the bottom of the checkout page.

    It got me thinking.

    If I could send each "hop" to the site with a different cookie, then even if I was reported, Clickbank might shut down that one account, but I'd still be okay with the rest. It wouldn't kill my promotion for the rest of the day.

    So I guess my question is, does anyone out there know how this can be done? Since the images aren't really "images," I wasn't sure if a normal PHP image rotator would work (or how to set it up).

    I'd want it to be able to handle a large list, as I'd be adding new affiliate links to it constantly.

    Is it doable?

    I suppose it would look something like this:

    Code:
    <img src="http://affiliate1.vendor.hop.clickbank.net" />
    <img src="http://affiliate2.vendor.hop.clickbank.net" />
    <img src="http://affiliate3.vendor.hop.clickbank.net" />
    <img src="http://affiliate4.vendor.hop.clickbank.net" />
    (you get the idea)
    The more links possible, the better.

    Doable? If so, how?
     
  2. bzy39

    bzy39 Regular Member

    Joined:
    Jan 15, 2009
    Messages:
    434
    Likes Received:
    239
    i think CS not allowed anymore here.
     
  3. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,286
    Likes Received:
    1,052
    It's not actually cookie stuffing. I'm still passing just one cookie like normal.

    I just want it to be a different cookie each time. Same site, but different affiliate ID attached.

    The first hop would have the "affiliate1.vendor" cookie. The second would have the "affiliate2.vendor" cookie. So on and so forth.
     
  4. squark

    squark Junior Member

    Joined:
    May 22, 2008
    Messages:
    156
    Likes Received:
    1,207
    It works exactly like you're expecting. The only catch might be ClickBank linking your accounts. But the rotation is pretty straightforward and will do what you want. Let me know if you need the php code for it.
     
  5. squark

    squark Junior Member

    Joined:
    May 22, 2008
    Messages:
    156
    Likes Received:
    1,207
    It works exactly like you're expecting. The only catch might be ClickBank linking your accounts. But the rotation is pretty straightforward and will do what you want. Let me know if you need the php code for it.
     
  6. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,286
    Likes Received:
    1,052
    I just got to thinking about it. Clickbank has since put a frame-breaker into their payment page, so in IE, when I click the checkout link, it looks like it erases the cookie and sends them to the payment page with no affiliate ID.

    This might be a problem.
     
  7. squark

    squark Junior Member

    Joined:
    May 22, 2008
    Messages:
    156
    Likes Received:
    1,207
    You don't need to frame it. Unless I'm missing what you're saying... but I do something very similar (random affiliate rotation) and I don't have any problems.
     
    • Thanks Thanks x 1
  8. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,286
    Likes Received:
    1,052
    After I read that last night, squark, I got to thinking, and I figured something out. :D

    Thanks, man! I'd rep you for it, but apparently I repped you too recently.
     
  9. squark

    squark Junior Member

    Joined:
    May 22, 2008
    Messages:
    156
    Likes Received:
    1,207
    Yeah... I'm THAT good :D