I Need a Javascript Redirect that strips peoples Affiliate ID...

Discussion in 'JavaScript' started by stealthgear, Dec 9, 2006.

  1. #1
    Okay so this might sound kind of wrong, but I'd like to make a javascript redirect page for a product site where people submit their links to good deals. BUT i'd like the script to detect if the outgoing link is in the format of an affiliate program that I'm already into...and of course change their affiliate ID to mine.

    I'd also want it to insert the proper affiliate link code into non-affiliate links. So if someone direct linked to a product then I could insert my affilate code in the right spot.

    I can't find any resources, and I'm not really a programmer. It seems like a javascript redirect page would work for this though. PM me, or drop me some code :p
     
    stealthgear, Dec 9, 2006 IP
  2. ratzmilk

    ratzmilk Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    So, what your asking is for someone to write you the code (for free of course) that will allow you to steal affiliate money from unsuspecting visitors to your website.

    Why not just ask people to rob banks for you and give you all the money.

    I love the bit where you say it "might sound kind of wrong". Mate, you have a pretty poor sense of morality.
     
    ratzmilk, Dec 9, 2006 IP
  3. stealthgear

    stealthgear Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What does this have to do with robbing a bank? If someone came to my site, and submitted a link, I would be the one displaying it. Therefore I own it and can modify it. I guess none of you are programmers...

    and I stand by my sense of morality you mother fucker. When someone asks for help with programming code you should either help them or shut the fuck up.
     
    stealthgear, Dec 9, 2006 IP
  4. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you would need to know the pattern for each an every affiliate program you're in and match/replace, likely with regular expressions.

    this is not a wise job for javascript unless you only have one or two links. even then it'd be better to do in php/etc.
     
    disgust, Dec 10, 2006 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    I was about to write something to help you out, but not anymore, that's not how to speak to people.
     
    krakjoe, Dec 10, 2006 IP
  6. stealthgear

    stealthgear Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    There is probably nothing that could make me more upset, at least online, than some stranger questioning my morals. I didn't come here to learn life lessons. Anyways, I am sorry for swearing at ratzmilk.
     
    stealthgear, Dec 16, 2006 IP
  7. stealthgear

    stealthgear Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    are you sure you don't want to? I felt bad afterwards. I probably shouldn't swear at people in forums.
     
    stealthgear, Dec 16, 2006 IP
  8. ratzmilk

    ratzmilk Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You had no intention of telling people that you would be stripping their affiliate ID's and replacing them with your own. Using false pretenses, you intended stealing the affiliate revenue of unsuspecting visitors to your site. Much the same way robbing a bank is also stealing from an unsuspecting party.

    However, you can't even be bothered learning how to steal other people's affiliate revenue yourself, you want someone else to do it for you, which is as dumb as asking some one else to rob a bank for you and give you all the money.

    I obviously touched a nerve with you, judging by your initial response.

    Yes, you would like that wouldn't you. Don't like looking into the mirror hey?

    To quote Edmund Burke ""All it takes for evil to flourish is for good men to do nothing".

    No sir, you will not be keeping me quite.
     
    ratzmilk, Jan 4, 2007 IP
  9. amnezia

    amnezia Peon

    Messages:
    990
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #9
    alot of us are programmers, we just don't work for free
     
    amnezia, Jan 5, 2007 IP
  10. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Most of the url shortening services (tinyurl etc) strip and replace affiliate links. You should do it in php if you want to do it and then people won't ever know they have been redirected.

    Make sure you put it in the TOS though.
     
    mad4, Jan 5, 2007 IP