Bitcoin Forum

Bitcoin => Project Development => Topic started by: carlosdelagarza on January 08, 2017, 07:40:58 AM



Title: Faucet "Cookie"
Post by: carlosdelagarza on January 08, 2017, 07:40:58 AM
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.


Title: Re: Faucet "Cookie"
Post by: devans on January 08, 2017, 11:29:21 AM
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.


Title: Re: Faucet "Cookie"
Post by: Moritz30 on January 08, 2017, 11:43:05 AM
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.


Title: Re: Faucet "Cookie"
Post by: Vod on January 09, 2017, 04:09:32 AM
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?


Title: Re: Faucet "Cookie"
Post by: carlosdelagarza on January 09, 2017, 09:55:26 AM
I'm using JavaScript.