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

base64 encoding my affiliate links - better way?

Discussion in 'White Hat SEO' started by niggles, Jun 3, 2009.

  1. niggles

    niggles Newbie

    Joined:
    May 23, 2009
    Messages:
    38
    Likes Received:
    14
    Occupation:
    Web developer
    Location:
    Melbourne Australia
    Home Page:
    Hi,

    To prevent link-jacking if my site gets scraped, I've started base64 encoding my links then running them through an outbound-links.php script which decodes them and sends it off to the correct affiliate link.

    a) Do you see anything wrong with this apart from a long query string?

    b) Or would I be better off mapping them to a database with a smaller id TinyURL style? (though as most links are dynamically generated this could fill up the database quickly)

    c) Or would I be better mapping the link to a $_SESSION and sending that through the outbound page ?

    Cheers,
    Niggles