GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   NATS, encoded vs non-encoded URLS (https://gfy.com/showthread.php?t=839242)

brandonstills 07-04-2008 02:50 PM

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?

Deej 07-04-2008 02:53 PM

can you not just replace the string?

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

just a punk 07-04-2008 03:00 PM

Quote:

Originally Posted by brandonstills (Post 14422756)
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.

Anothers 07-04-2008 03:11 PM

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

brandonstills 07-04-2008 03:23 PM

Quote:

Originally Posted by cyberxxx (Post 14422783)
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?

just a punk 07-04-2008 03:31 PM

Quote:

Originally Posted by brandonstills (Post 14422853)
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)

brandonstills 07-04-2008 03:39 PM

thanks :)

peedy 07-05-2008 11:52 AM

WTF? lol, now I know why I didn't become a programmer!

GrouchyAdmin 07-05-2008 01:37 PM

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)

dfa 07-05-2008 01:47 PM

Quote:

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?


All times are GMT -7. The time now is 02:10 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123