Bitcoin Forum
September 20, 2019, 12:25:14 AM *
News: If you like a topic and you see an orange "bump" link, click it. More info.
 
   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.
1568939114
Hero Member
*
Offline Offline

Posts: 1568939114

View Profile Personal Message (Offline)

Ignore
1568939114
Reply with quote  #2

1568939114
Report to moderator
1568939114
Hero Member
*
Offline Offline

Posts: 1568939114

View Profile Personal Message (Offline)

Ignore
1568939114
Reply with quote  #2

1568939114
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1568939114
Hero Member
*
Offline Offline

Posts: 1568939114

View Profile Personal Message (Offline)

Ignore
1568939114
Reply with quote  #2

1568939114
Report to moderator
1568939114
Hero Member
*
Offline Offline

Posts: 1568939114

View Profile Personal Message (Offline)

Ignore
1568939114
Reply with quote  #2

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

Activity: 358
Merit: 266

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: 2870
Merit: 2291


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!