NATS, encoded vs non-encoded URLS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brandonstills
    Confirmed User
    • Dec 2007
    • 1964

    #1

    NATS, encoded vs non-encoded URLS

    I have a database of FHG links that I imported from sponsors. I want to be able to allow a friend to use the same database but it has all my affiliate codes in there. Is it possible to change the URL and replace his affiliate code if it is encoded?

    Is it encoded or encrypted? Meaning is it proprietary and can I do this, or am I forced to recreate my database with the unencoded URLs? Anyone know the format/algorithm for this?

    I personally like the encoded because it looks better, but are there other reasons people choose the encoded rather than the unencoded? Is this some kind of security / fraud thing as well?

    Brandon Stills
    Industry and programming veteran
    [email protected] | skype: brandonstills | ICQ #495-171-318
  • Deej
    I make pixels work
    • Jun 2005
    • 24386

    #2
    can you not just replace the string?

    and i do think theres a person or service that has done this...

    Deej's Designs n' What Not
    Hit me up for Design, CSS & Photo Retouching


    Icq#30096880

    Comment

    • just a punk
      So fuckin' bored
      • Jun 2003
      • 32385

      #3
      Originally posted by brandonstills
      Is it encoded or encrypted? Meaning is it proprietary and can I do this, or am I forced to recreate my database with the unencoded URLs? Anyone know the format/algorithm for this?
      Yes, it is. You have to base64decode it, replace the affiliate id then base64encode it again. It's very easy actually. Just don't forget to remove trailing "="'s from the encoded string.
      Last edited by just a punk; 07-04-2008, 02:02 PM.
      Obey the Cowgod

      Comment

      • Anothers
        Confirmed User
        • Nov 2001
        • 219

        #4
        If you want php script. Contact me with details [email protected]
        (free script of course)

        Comment

        • brandonstills
          Confirmed User
          • Dec 2007
          • 1964

          #5
          Originally posted by cyberxxx
          Yes, it is. You have to base64decode it, replace the affiliate id then base64encode it again. It's very easy actually. Just don't forget to remove trailing "="'s from the encoded string.
          Thanks, didn't realize it was so simple. What do the different fields mean?

          From the encoded there's:
          STRING, param1, param2, param3, param4

          It looks like param 4 is the gallery id, what are the other ones? One of them is probably the campaign code I'm guessing.

          Also, decoding the string results in 3 additional fields:
          [param a]:[param b]:[param c]

          What do these mean / correspond to?

          Brandon Stills
          Industry and programming veteran
          [email protected] | skype: brandonstills | ICQ #495-171-318

          Comment

          • just a punk
            So fuckin' bored
            • Jun 2003
            • 32385

            #6
            Originally posted by brandonstills
            Thanks, didn't realize it was so simple. What do the different fields mean?

            From the encoded there's:
            STRING, param1, param2, param3, param4

            It looks like param 4 is the gallery id, what are the other ones? One of them is probably the campaign code I'm guessing.

            Also, decoding the string results in 3 additional fields:
            [param a]:[param b]:[param c]

            What do these mean / correspond to?
            (affiliate id)campaign id)site id)
            Last edited by just a punk; 07-04-2008, 02:32 PM.
            Obey the Cowgod

            Comment

            • brandonstills
              Confirmed User
              • Dec 2007
              • 1964

              #7
              thanks

              Brandon Stills
              Industry and programming veteran
              [email protected] | skype: brandonstills | ICQ #495-171-318

              Comment

              • peedy
                Confirmed User
                • Oct 2004
                • 866

                #8
                WTF? lol, now I know why I didn't become a programmer!
                --
                Peedy

                PeedyCash
                CCBill Powered, NO BULLSHIT!

                Comment

                • GrouchyAdmin
                  Now choke yourself!
                  • Apr 2006
                  • 12085

                  #9
                  Don't forget that the encoded URLs generally use the database entry id, which is auto_increment. Basically, get the last value, pad it with =, as apropos (although PHP will base64_decode a stripped string/value), and just affil:campaign:site (plus optional 4 comma terminated)

                  Comment

                  • dfa
                    Confirmed User
                    • Sep 2006
                    • 263

                    #10
                    but are there other reasons people choose the encoded rather than the unencoded? Is this some kind of security / fraud thing as well?
                    i was thinking about the same thing earlier...anyone know the answer?
                    =]

                    Comment

                    Working...