Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Boelens on May 10, 2013, 12:44:55 AM



Title: How to make a faucet?
Post by: Boelens on May 10, 2013, 12:44:55 AM
Hey there! I want to make a YACoin faucet, and I got the webhosting, however I was wondering, how to make a faucet? Are there any scripts publicly availible to make this easily?


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 12:51:41 AM
Anyone?


Title: Re: How to make a faucet?
Post by: gweedo on May 10, 2013, 01:02:33 AM
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...


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:03:00 AM
I'll write you one. I can do a quick PHP script.


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 01:04:34 AM
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.


I'll write you one. I can do a quick PHP script.

Thanks, that would be great!


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:05:35 AM
Do you have a yacoin rpc server?


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 01:06:19 AM
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?


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:08:37 AM
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.


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 01:10:17 AM
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?


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:11:12 AM
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.


Title: Re: How to make a faucet?
Post by: gweedo on May 10, 2013, 01:12:22 AM
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...


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 01:12:32 AM
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?


Title: Re: How to make a faucet?
Post by: limitless on May 10, 2013, 01:13:24 AM
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.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:15:37 AM
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.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:16:43 AM
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.


Title: Re: How to make a faucet?
Post by: limitless on May 10, 2013, 01:17:09 AM
Great. You'll have to excuse me now for 30 minutes, a little busy :P


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 01:17:41 AM
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.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:21:02 AM
Are the RPC commands for Bitcoin and Yacoin the same?


Title: Re: How to make a faucet?
Post by: limitless on May 10, 2013, 01:35:45 AM
Yes.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 01:37:02 AM
Yes.
Yay. I'll get started now.


Title: Re: How to make a faucet?
Post by: HeroC on May 10, 2013, 01:44:24 AM
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.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 02:13:39 AM
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.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 02:45:44 AM
This script will require PHP, MySQL, and a RPC server. Just making sure that you have those.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 03:32:33 AM
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


Title: Re: How to make a faucet?
Post by: limitless on May 10, 2013, 03:33:24 AM
Alright, and where do I come in with the rpc server?


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 03:35:39 AM
Alright, and where do I come in with the rpc server?
When OP sets up his server with my code.


Title: Re: How to make a faucet?
Post by: gweedo on May 10, 2013, 03:36:11 AM
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.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 03:40:40 AM
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!


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 10:50:35 AM
And here I am just having no idea what anybody is talking about and no idea who to trust ;_;


Title: Re: How to make a faucet?
Post by: super3 on May 10, 2013, 12:45:19 PM
My Terracoin Faucet (http://trcfaucet.com/) software is pretty good. Built it with Python and Foundation. All you would have to do is compile your altcoin, and then change all the names from terracoin to whatever coin your trying to do.

Faucets are actually pretty fun to run, and might even be pretty profitable. I started mine yesterday morning at it already has 5,500 pageviews. I've had sites a 1/5 of its size, and got me $50 a month.

Let me know if you are interested in buying the script. I'll even help you set it up.

 


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 01:03:53 PM
My Terracoin Faucet (http://trcfaucet.com/) software is pretty good. Built it with Python and Foundation. All you would have to do is compile your altcoin, and then change all the names from terracoin to whatever coin your trying to do.

Faucets are actually pretty fun to run, and might even be pretty profitable. I started mine yesterday morning at it already has 5,500 pageviews. I've had sites a 1/5 of its size, and got me $50 a month.

Let me know if you are interested in buying the script. I'll even help you set it up.

 

I really can't spend a lot on scripts, but that does look neat. How uch would it cost?


Title: Re: How to make a faucet?
Post by: super3 on May 10, 2013, 01:23:25 PM
My Terracoin Faucet (http://trcfaucet.com/) software is pretty good. Built it with Python and Foundation. All you would have to do is compile your altcoin, and then change all the names from terracoin to whatever coin your trying to do.

Faucets are actually pretty fun to run, and might even be pretty profitable. I started mine yesterday morning at it already has 5,500 pageviews. I've had sites a 1/5 of its size, and got me $50 a month.

Let me know if you are interested in buying the script. I'll even help you set it up.

 

I really can't spend a lot on scripts, but that does look neat. How uch would it cost?
Eh. I was thinking 1-2 BTC unless you have a whole bunch of an alt.


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 05:31:59 PM
My Terracoin Faucet (http://trcfaucet.com/) software is pretty good. Built it with Python and Foundation. All you would have to do is compile your altcoin, and then change all the names from terracoin to whatever coin your trying to do.

Faucets are actually pretty fun to run, and might even be pretty profitable. I started mine yesterday morning at it already has 5,500 pageviews. I've had sites a 1/5 of its size, and got me $50 a month.

Let me know if you are interested in buying the script. I'll even help you set it up.

 

I really can't spend a lot on scripts, but that does look neat. How uch would it cost?
Eh. I was thinking 1-2 BTC unless you have a whole bunch of an alt.

Sorry, I really can't spend such an amount, thanks for the offer though.


Title: Re: How to make a faucet?
Post by: Wolf Rainer on May 10, 2013, 06:31:00 PM
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.

I already have a yacoin faucet http://admindependencia.net/faucet.html


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 09:29:38 PM
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.

1. So you can't sql inject by doing an overflow? LMAOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
2. Zhou Tong did the same thing and we all know what happened with that.
3. Again overflow.
2. It's Mao Zedong who was responsible for the Cultural Revolution. Zhou Tong is an archer.


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 09:33:24 PM
And here I am just having no idea what anybody is talking about and no idea who to trust ;_;
In a nutshell, If you want an extemely secure system buy gweedo's software. If you want something simple and less secure, use mine for free.

EDIT: Actually, just use this (https://bitcointalk.org/index.php?topic=101407.0).


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 09:36:46 PM
I have a solution! Just use this (https://github.com/Greedi/bitcoin-faucet) (https://bitcointalk.org/index.php?topic=101407.0) as your faucet software!
I'll help you set it up if you need it.


Title: Re: How to make a faucet?
Post by: limitless on May 10, 2013, 10:00:50 PM
Let me know if I can still help!


Title: Re: How to make a faucet?
Post by: Jaxkr on May 10, 2013, 10:16:56 PM
Let me know if I can still help!
Pretty sure OP will need your RPC server. :P


Title: Re: How to make a faucet?
Post by: limitless on May 10, 2013, 10:22:50 PM
Yeah but when is this faucet going to be ready?


Title: Re: How to make a faucet?
Post by: Wolf Rainer on May 10, 2013, 10:34:00 PM
Yeah but when is this faucet going to be ready?

I have the yacoins faucet 2 days ago... http://admindependencia.net/faucet.html


Title: Re: How to make a faucet?
Post by: Boelens on May 10, 2013, 11:51:40 PM
Yeah but when is this faucet going to be ready?

I have the yacoins faucet 2 days ago... http://admindependencia.net/faucet.html

Ah, I see. Is there need for a second one?


Title: Re: How to make a faucet?
Post by: Wolf Rainer on May 10, 2013, 11:55:48 PM
Yeah but when is this faucet going to be ready?

I have the yacoins faucet 2 days ago... http://admindependencia.net/faucet.html

You have the worst faucet, why you public displaying IP's on the front page. Someone can DDOS and if they are running the YACoin client someone can knock them off the network, or try and poison their client with bad data.

Lol. You know than you can see the ips in the Yacoin client? You can see the IPS connected to the red or node and the ports so you can easily attack they with DDOS, you dont need my faucet to see that.

I made the ip publics to be clean, to show people this is not scam and none is getting more than others.


Title: Re: How to make a faucet?
Post by: Wolf Rainer on May 11, 2013, 12:05:24 AM
Yeah but when is this faucet going to be ready?

I have the yacoins faucet 2 days ago... http://admindependencia.net/faucet.html

You have the worst faucet, why you public displaying IP's on the front page. Someone can DDOS and if they are running the YACoin client someone can knock them off the network, or try and poison their client with bad data.

Lol. You know than you can see the ips in the Yacoin client? You can see the IPS connected to the red or node and the ports so you can easily attack they with DDOS, you dont need my faucet to see that.

I made the ip publics to be clean, to show people this is not scam and none is getting more than others.

I am not even going to argue, with you cause your so dumb, yet you think your smart UGH. Trust me, your client isn't seeing over 80 ip's which I can easily scrape and DDOS and poison with bad data ;) Trust me I been here for a while, kinda know what I am talking about.

You can see more than 40 ips and ports of people mining in the YACOIN client, in my web it only shows the last 10 ips and NOT PORTS, so if you are mining in a pool you cant be attacked cause you dont need an internal open port only a external....

And i can see you are Java, PHP, HTML/CSS Programmer, so why dont you make a better faucet and stop talking shit to someone who did his best effort to make something for the others?


Title: Re: How to make a faucet?
Post by: Jaxkr on May 11, 2013, 12:34:05 AM
Quote from: gweedo
cause your so dumb, yet you think your smart
It's "you're", by the way.

Quote from: Wolf Rainer
why dont you make a better faucet and stop talking shit to someone who did his best effort to make something for the others?
Because his faucet is not open source and he charges for it.


Title: Re: How to make a faucet?
Post by: Boelens on May 11, 2013, 01:06:51 AM
Well, I'll try to put up my own faucet now!


Title: Re: How to make a faucet?
Post by: limitless on May 11, 2013, 01:08:44 AM
K, still need that rpc server?


Title: Re: How to make a faucet?
Post by: Jaxkr on May 11, 2013, 01:10:06 AM
Well, I'll try to put up my own faucet now!
I repeat, use the free software I linked to. Don't use the piece of crap I made.


Title: Re: How to make a faucet?
Post by: Boelens on May 11, 2013, 01:17:42 AM
K, still need that rpc server?

Probably - yes, I'm not exactly sure how it works though so I hope I can figure it out.

Well, I'll try to put up my own faucet now!
I repeat, use the free software I linked to. Don't use the piece of crap I made.

I will!