Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-04-2008, 02:50 PM   #1
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
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?
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-04-2008, 02:53 PM   #2
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
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
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-04-2008, 03:00 PM   #3
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,386
Quote:
Originally Posted by brandonstills View Post
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.
__________________
Obey the Cowgod

Last edited by just a punk; 07-04-2008 at 03:02 PM..
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-04-2008, 03:11 PM   #4
Anothers
Confirmed User
 
Join Date: Nov 2001
Location: Poland
Posts: 219
If you want php script. Contact me with details [email protected]
(free script of course)
Anothers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-04-2008, 03:23 PM   #5
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by cyberxxx View Post
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?
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-04-2008, 03:31 PM   #6
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,386
Quote:
Originally Posted by brandonstills View Post
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)
__________________
Obey the Cowgod

Last edited by just a punk; 07-04-2008 at 03:32 PM..
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-04-2008, 03:39 PM   #7
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
thanks
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2008, 11:52 AM   #8
peedy
Confirmed User
 
peedy's Avatar
 
Join Date: Oct 2004
Location: Indiana
Posts: 866
WTF? lol, now I know why I didn't become a programmer!
peedy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2008, 01:37 PM   #9
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
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)
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2008, 01:47 PM   #10
dfa
Confirmed User
 
dfa's Avatar
 
Join Date: Sep 2006
Location: ICQ - 488793641
Posts: 263
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?
__________________
=]
dfa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.