Bitcoin Forum
May 24, 2024, 05:56:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Faucet "Cookie"  (Read 545 times)
carlosdelagarza (OP)
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.
devans
Sr. Member
****
Offline Offline

Activity: 528
Merit: 368


View Profile
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.
Moritz30
Sr. Member
****
Offline Offline

Activity: 364
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: 3710
Merit: 3084


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?

https://nastyscam.com - landing page up     https://vod.fan - advanced image hosting - coming soonish!
OGNasty has early onset dementia; keep this in mind when discussing his past actions.
carlosdelagarza (OP)
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!