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

[SOLUTION] Amazon Method redirect

Discussion in 'Making Money' started by fuserleer, Mar 1, 2012.

  1. fuserleer

    fuserleer BANNED BANNED

    Joined:
    Sep 22, 2011
    Messages:
    92
    Likes Received:
    466
    Ok, I'm gunna spend some time now to do this as I sense people are getting a little frustrated.

    I'm sorry you've all had to wait, but my business has to com first over giving out free stuff and methods, I'm sure everyone can appreciate that. :)

    So ok, when you import the products to the first domain, you need to save the Amazon URL WITH YOUR AFFILIATE INFO IN IT for that product somewhere on the first site. If its missing your affiliate info, you wont bank, simple as that. I'm sure you can figure that part out.

    On to the redirects

    So on site 1, when a visitor clicks your buy button or whatever, that button links to site 2 like this

    http://www.site2.com/doredirect.php?url=AMAZON_URL

    doredirect.php should be something like this

    <?php

    if (!isset($_REQUEST['url'])) $_REQUEST['url'] = "www.amazon.com?your_affiliate_id_stuff;

    ?>

    <script>

    function do_redirect()
    {
    window.location = "<?=urldecode($_REQUEST['url']);?>";
    }

    setTimeout("do_redirect()", 500);

    </script>

    ?>

    And thats it!

    I haven't tested it, as I just laid it down in here, but its very simple, and anyone thats every sniffed PHP can figure this out in a heartbeat.

    D
     
    • Thanks Thanks x 21
    Last edited: Mar 1, 2012
  2. Junkfood00

    Junkfood00 Elite Member

    Joined:
    Sep 13, 2011
    Messages:
    1,949
    Likes Received:
    1,336
    Well thanks again. I'm not a PHP guru but this line <?=urldecode($_REQUEST['url']);?> if it's not working it could be replaced with this: <?php echo urldecode($_REQUEST['url']);?>
     
    Last edited: Mar 1, 2012
  3. fuserleer

    fuserleer BANNED BANNED

    Joined:
    Sep 22, 2011
    Messages:
    92
    Likes Received:
    466
    mis-understood post above
     
    Last edited: Mar 1, 2012
  4. woodmad

    woodmad Junior Member

    Joined:
    Jul 27, 2010
    Messages:
    148
    Likes Received:
    17
    any sample off site 1 arround here?
     
  5. Junkfood00

    Junkfood00 Elite Member

    Joined:
    Sep 13, 2011
    Messages:
    1,949
    Likes Received:
    1,336
    Why not? It's just the syntax for compatibility, not the script..
     
  6. fuserleer

    fuserleer BANNED BANNED

    Joined:
    Sep 22, 2011
    Messages:
    92
    Likes Received:
    466
    oh sorry

    I read what you meant wrong, its been another long day

    yes you could do that!
     
  7. pride1760

    pride1760 Registered Member

    Joined:
    Oct 17, 2011
    Messages:
    94
    Likes Received:
    30
    Location:
    NA
    how does it know which product to redirect to?

    also, won't a manual review by google get us banned for having an amazon affiliate URL on the same page as the "buy now" button?

    sorry for asking noob questions :p
     
    • Thanks Thanks x 1
  8. IntensE

    IntensE Power Member

    Joined:
    Aug 19, 2008
    Messages:
    771
    Likes Received:
    656
    Occupation:
    Cashing in
    Location:
    thugz mansion
    fuserleer could you please come on skype ?
     
  9. boom1

    boom1 BANNED BANNED

    Joined:
    Nov 4, 2011
    Messages:
    818
    Likes Received:
    254
    you keep giving, needed this
     
  10. Junkfood00

    Junkfood00 Elite Member

    Joined:
    Sep 13, 2011
    Messages:
    1,949
    Likes Received:
    1,336
    Haha yeah I also seem to have missed something..
     
  11. madarazama

    madarazama Newbie

    Joined:
    Feb 21, 2012
    Messages:
    20
    Likes Received:
    3
    Thanks for the tutorial mate....:)
     
  12. jerra

    jerra Regular Member

    Joined:
    Sep 18, 2008
    Messages:
    476
    Likes Received:
    64
    Home Page:
    This is VERY good of the OP for posting this. He is a great guy and has really gone out of him way to help people.
     
    • Thanks Thanks x 2
  13. fuserleer

    fuserleer BANNED BANNED

    Joined:
    Sep 22, 2011
    Messages:
    92
    Likes Received:
    466
    I like people with thought out questions! :D

    Yes thats something that "could" happen.

    What I did was bury the redirect behind another click or so.

    Buy button click -> new page "THis item is $xxxx are you sure you want to buy?" -> click yes do redirect

    D

     
    • Thanks Thanks x 3
  14. jerra

    jerra Regular Member

    Joined:
    Sep 18, 2008
    Messages:
    476
    Likes Received:
    64
    Home Page:
    Anyone want to work together to get a fully working set up?
     
  15. kouxx

    kouxx Junior Member

    Joined:
    Aug 2, 2008
    Messages:
    160
    Likes Received:
    38
    i use this to decrypt it
    PHP:
    $key 'password'//   you  can  write what you want here..  if you don't know what this is for.. leave it
    $string 'B000KKO894'// amazn id  here

    $encrypted base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256md5($key), $stringMCRYPT_MODE_CBCmd5(md5($key)))); 
    $decrypted rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256md5($key), base64_decode($encrypted), MCRYPT_MODE_CBCmd5(md5($key))), "\0");

    echo 
    'Encrypted:' "\n";
    var_dump($encrypted);


    echo 
    ' Decrypted:' "\n";
    var_dump($decrypted); 
    paste it into a php file....

    some people asked pms.. because they didn't underestand it...

    i do encode this "B000KKO894" so that the ID on domian 1 the item ID is someting like 23k3412361we2461ewklrn291924823478
    so the url would be buy.php?item=23k3412361we2461ewklrn291924823478

    i decrypt the ID on domain 2.
    i takes the string from the url.. and makes "B000KKO894" from it... so that it can be properly rediected to the offer.


    need to send this quick..
    might go into this later..... ordered pizza .. already told Dan that i have not had eaten anything for 10 hrs ........... 11 now.. LOL so off topic but the ppl in THIS thread should be a small trageted group right now.


    edit: why would you do this?
    there are 2 groups of people that you want to make very happy ( :) )
    G employees
    and A employees
    they aren't internet marketes but they aren't idiots..
    they can tell if string in a URL is an amazon ID...
    if those people from amazon review your 1 domain.. for some reason... they KNOW how an A-S-I-N looks like ( it beginns with B00 if its not a book or dvd)
    i know that it is an aff store when i hover a link or button and it shows A-S-I-N in the link url
    and i guess you guys would also know this.
     
    • Thanks Thanks x 8
    Last edited: Mar 1, 2012
  16. madarazama

    madarazama Newbie

    Joined:
    Feb 21, 2012
    Messages:
    20
    Likes Received:
    3
    Thanks mate. Now I see the big picture.
     
  17. RTM77

    RTM77 Junior Member

    Joined:
    Oct 27, 2011
    Messages:
    127
    Likes Received:
    17
    Location:
    ----------------------->
    This could have been one of the greatest WSO's to live but OP has decided to share it with us.Thanks again OP, time to try some PHP tutorials at w3schools.com :D.
     
  18. ryce889

    ryce889 Regular Member

    Joined:
    Jul 23, 2008
    Messages:
    490
    Likes Received:
    152
    Location:
    NY, NY
    Is there a reason why we need to do a redirect instead of just applying the amazon store to google base? It doesn't appear to be against their terms and agreement?
     
  19. dennisyu

    dennisyu Power Member

    Joined:
    Jan 9, 2010
    Messages:
    552
    Likes Received:
    170

    I haven't read either TOS, but i am pretty damn sure G is not going to approve an affiliate site.

    Also, if i remember correctly from OP's pdf, Amazon does not allow you to list products on google base. Domain 2 is used to fake the referrer so Amazon does not find out.
     
  20. jdog37

    jdog37 Power Member

    Joined:
    Apr 3, 2009
    Messages:
    510
    Likes Received:
    569
    Occupation:
    unemployed electrician
    Location:
    virginia
    Pretty sure this covers it.

    Code:
    http://support.google.com/merchants/bin/answer.py?hl=en&answer=188484
    They seem to be pretty strict.