![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
I make pixels work
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...
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,386
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
|
Quote:
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? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,386
|
Quote:
__________________
Obey the Cowgod |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
|
thanks
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Oct 2004
Location: Indiana
Posts: 866
|
WTF? lol, now I know why I didn't become a programmer!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Now choke yourself!
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)
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Sep 2006
Location: ICQ - 488793641
Posts: 263
|
Quote:
__________________
=] |
|
![]() |
![]() ![]() ![]() ![]() ![]() |