Bitcoin Forum
October 22, 2019, 02:23:27 AM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Faucet "Cookie"  (Read 491 times)
carlosdelagarza
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
January 08, 2017, 07:40:58 AM
 #1

Hello,  I have a faucet and I'm wondering...

What's the way to "save" the addresses from your faucet users?

I mean, every time that they enter to my faucet they have to "write" their addresses, so I want to save them that job.
1571711007
Hero Member
*
Offline Offline

Posts: 1571711007

View Profile Personal Message (Offline)

Ignore
1571711007
Reply with quote  #2

1571711007
Report to moderator
1571711007
Hero Member
*
Offline Offline

Posts: 1571711007

View Profile Personal Message (Offline)

Ignore
1571711007
Reply with quote  #2

1571711007
Report to moderator
1571711007
Hero Member
*
Offline Offline

Posts: 1571711007

View Profile Personal Message (Offline)

Ignore
1571711007
Reply with quote  #2

1571711007
Report to moderator
Goat says: "Bitcoin is NOT Illegal in Thailand. There is no law against Bitcoin in Thailand!"
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1571711007
Hero Member
*
Offline Offline

Posts: 1571711007

View Profile Personal Message (Offline)

Ignore
1571711007
Reply with quote  #2

1571711007
Report to moderator
1571711007
Hero Member
*
Offline Offline

Posts: 1571711007

View Profile Personal Message (Offline)

Ignore
1571711007
Reply with quote  #2

1571711007
Report to moderator
devans
Sr. Member
****
Offline Offline

Activity: 386
Merit: 285

bustabit & bustadice


View Profile WWW
January 08, 2017, 11:29:21 AM
 #2

Like you have mentioned in your title, you can store it in a cookie.

Just remember to never trust the client and perform the same validation and sanitation on addresses taken from cookies as you do on addresses taken from the form. It is trivial for the user to set the cookie to an arbitrary value, so you can't assume it's a valid address.

bustabit – The original crash game
bustadice – Fast-paced bustabit-like dice with no wager limit
Moritz30
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
January 08, 2017, 11:43:05 AM
 #3

Hello,  I have a faucet and I'm wondering...

What's the way to "save" the addresses from your faucet users?

I mean, every time that they enter to my faucet they have to "write" their addresses, so I want to save them that job.

In Cookies or Sessions. PM me if you want me to add that to your faucet code.
Vod
Legendary
*
Offline Offline

Activity: 2898
Merit: 2309


Licking my boob since 1970


View Profile WWW
January 09, 2017, 04:09:32 AM
 #4

Hello,  I have a faucet and I'm wondering...

What's the way to "save" the addresses from your faucet users?

I mean, every time that they enter to my faucet they have to "write" their addresses, so I want to save them that job.

What programming language are you using?

I'm into creating universes, smiting people, writing holy books and listening to Prayer Messages (PMs).
BitcoinTalk Public Information Project (BPIP)  - BPIP Reports
"Masturbation makes you feel good but doesn't do anything for the person you're thinking of.  Just like prayer."
carlosdelagarza
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
January 09, 2017, 09:55:26 AM
 #5

I'm using JavaScript.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!