Pages:
Author

Topic: How to make a faucet? - page 2. (Read 2319 times)

hero member
Activity: 672
Merit: 500
May 10, 2013, 06:50:35 AM
#29
And here I am just having no idea what anybody is talking about and no idea who to trust ;_;
sr. member
Activity: 420
Merit: 250
May 09, 2013, 11:40:40 PM
#28
Done! Here is something REALLY quick and dirty. It probably doesn't work. When it doesn't, tell me and I'll fix it.

https://github.com/Jaxkr/YACoin-Faucet

So many things wrong with this.

1) You didn't protect against SQL injections
2) Your Regex doesn't check that it is too long or it has the correct address number in the front.
3) Use a schema.sql so people can install the tables properly so you can protect them against overflow


and just so much more that you have to pay me to fix.
1. I did protect against them. The regex does a pretty good job. Hard to stage a proper attack with only numbers and letters.
2. I know. I was doing this is fast as I could.
3. I should! I'll do that ASAP. I was doing this as fast as I could.

I threw this together in less than an hour of work. It's not gonna be good. But it's free!
legendary
Activity: 1498
Merit: 1000
May 09, 2013, 11:36:11 PM
#27
Done! Here is something REALLY quick and dirty. It probably doesn't work. When it doesn't, tell me and I'll fix it.

https://github.com/Jaxkr/YACoin-Faucet

So many things wrong with this.

1) You didn't protect against SQL injections
2) Your Regex doesn't check that it is too long or it has the correct address number in the front.
3) Use a schema.sql so people can install the tables properly so you can protect them against overflow


and just so much more that you have to pay me to fix.
sr. member
Activity: 420
Merit: 250
May 09, 2013, 11:35:39 PM
#26
Alright, and where do I come in with the rpc server?
When OP sets up his server with my code.
member
Activity: 70
Merit: 10
May 09, 2013, 11:33:24 PM
#25
Alright, and where do I come in with the rpc server?
sr. member
Activity: 420
Merit: 250
May 09, 2013, 11:32:33 PM
#24
Done! Here is something REALLY quick and dirty. It probably doesn't work. When it doesn't, tell me and I'll fix it.

https://github.com/Jaxkr/YACoin-Faucet
sr. member
Activity: 420
Merit: 250
May 09, 2013, 10:45:44 PM
#23
This script will require PHP, MySQL, and a RPC server. Just making sure that you have those.
sr. member
Activity: 420
Merit: 250
May 09, 2013, 10:13:39 PM
#22
Just curious, can you publicly release this? I have been looking for this for a while. I plan to change a fue things to bitcoin. If not it is OK.
Yes. I'll release it under Creative Commons.
legendary
Activity: 858
Merit: 1000
May 09, 2013, 09:44:24 PM
#21
Just curious, can you publicly release this? I have been looking for this for a while. I plan to change a fue things to bitcoin. If not it is OK.
sr. member
Activity: 420
Merit: 250
May 09, 2013, 09:37:02 PM
#20
member
Activity: 70
Merit: 10
May 09, 2013, 09:35:45 PM
#19
Yes.
sr. member
Activity: 420
Merit: 250
May 09, 2013, 09:21:02 PM
#18
Are the RPC commands for Bitcoin and Yacoin the same?
hero member
Activity: 672
Merit: 500
May 09, 2013, 09:17:41 PM
#17
I have a JSON-RPC server you guys could use.
It's on my VPS.

230 days uptime ^_^

Very stable. I will donate it to the YAC cause.
Sounds good. If I get some code written I would love to use it! Thanks.

That would be great! I can provide webhosting and some YAcoins at first to fund, but I'm not that rich in BTC/YAC though so I can't do a lot, we'll need donations later on to keep it running. There's also a 100YAC bounty though so that's good.
EDIT : Of course the bounty would be sent to the faucet.
member
Activity: 70
Merit: 10
May 09, 2013, 09:17:09 PM
#16
Great. You'll have to excuse me now for 30 minutes, a little busy Tongue
sr. member
Activity: 420
Merit: 250
May 09, 2013, 09:16:43 PM
#15
I have a JSON-RPC server you guys could use.
It's on my VPS.

230 days uptime ^_^

Very stable. I will donate it to the YAC cause.
Sounds good. If I get some code written I would love to use it! Thanks.
sr. member
Activity: 420
Merit: 250
May 09, 2013, 09:15:37 PM
#14
Do you have a yacoin rpc server?

Uh - I'm sorry, I can't say I'm an expert with these things, I want to give some BTC, what's an RPC server?
Yacoin and Bitcoin work the same way. If you tell them to, they will run something called an JSON-RPC server. On Bitcoin, it's done by using bitcoind or bitcoin-qt -server.
On Yacoin it's yacoin-qt -server.

JSON-RPC allows the wallet to be accessed programmatically. It's needed for any application that handles bitcoin.

Oh, no I don't have an RPC server :/. Is one required? Also, do I need to buy one?
You need one. Making a faucet without one is impossible. You can just run it on a VPS or on your own computer if it's on 24/7.

I don't have an VPS, I can run it on my own PC, not 24/7 though - would it be a problem if I turned it on and off every now and then? Or would requests get clogged up and everything go wrong when I start it up again? Or would it just process them?
What you can do is write have a cron job that runs a PHP script every so often. This gets unpaid faucet requests from a DB and sends them. If the server is offline, it just doesn't go, and checks again next time it runs. So, requests would clog up, but it would work fine.
member
Activity: 70
Merit: 10
May 09, 2013, 09:13:24 PM
#13
I have a JSON-RPC server you guys could use.
It's on my VPS.

230 days uptime ^_^

Very stable. I will donate it to the YAC cause.
hero member
Activity: 672
Merit: 500
May 09, 2013, 09:12:32 PM
#12
Do you have a yacoin rpc server?

Uh - I'm sorry, I can't say I'm an expert with these things, I want to give some BTC, what's an RPC server?
Yacoin and Bitcoin work the same way. If you tell them to, they will run something called an JSON-RPC server. On Bitcoin, it's done by using bitcoind or bitcoin-qt -server.
On Yacoin it's yacoin-qt -server.

JSON-RPC allows the wallet to be accessed programmatically. It's needed for any application that handles bitcoin.

Oh, no I don't have an RPC server :/. Is one required? Also, do I need to buy one?
You need one. Making a faucet without one is impossible. You can just run it on a VPS or on your own computer if it's on 24/7.

I don't have an VPS, I can run it on my own PC, not 24/7 though - would it be a problem if I turned it on and off every now and then? Or would requests get clogged up and everything go wrong when I start it up again? Or would it just process them?
legendary
Activity: 1498
Merit: 1000
May 09, 2013, 09:12:22 PM
#11
I can sell you my script for a fee, and it should work with YACoin since it is based off bitcoind. Pm me for a price...

No thanks, it's already costing me to give it away, and it's to gain interest for YAcoin, I don't really have anything to pay for it.

It is a security harden script runs on many web sites, and has never been hacked. People who are going to do this for free, for someone that doesn't have a programming background maybe just throw an insecure site together. That will lead to hacks and that is very sad, that you will not spend a little more to someone that make sure you have a great faucet, when your ready for someone to do this the right way. PM me...
sr. member
Activity: 420
Merit: 250
May 09, 2013, 09:11:12 PM
#10
Do you have a yacoin rpc server?

Uh - I'm sorry, I can't say I'm an expert with these things, I want to give some BTC, what's an RPC server?
Yacoin and Bitcoin work the same way. If you tell them to, they will run something called an JSON-RPC server. On Bitcoin, it's done by using bitcoind or bitcoin-qt -server.
On Yacoin it's yacoin-qt -server.

JSON-RPC allows the wallet to be accessed programmatically. It's needed for any application that handles bitcoin.

Oh, no I don't have an RPC server :/. Is one required? Also, do I need to buy one?
You need one. Making a faucet without one is impossible. You can just run it on a VPS or on your own computer if it's on 24/7.
Pages:
Jump to: