Author

Topic: Howto for installing Testnet faucet? (Read 880 times)

sr. member
Activity: 490
Merit: 250
March 23, 2017, 01:50:54 PM
#6
Unless the test reveals all the pros and cons of the project? If only indicates general directions
hero member
Activity: 623
Merit: 501
March 21, 2017, 07:18:26 AM
#5
Hi again,

Sorry for this very late reply. Thanks for helping out. We are testing your test atm. I'll keep you posted on further updates  Wink

Thanks again!
legendary
Activity: 3584
Merit: 5248
https://merel.mobi => buy facemasks with BTC/LTC
October 28, 2016, 05:08:57 AM
#4
Hi guys,

Can anyone advise me in installing a testnet bitcoin faucet? I already have a webhosting and I can use various CMS (e.g. WP).

Thanks  Wink

I'd probably just install bitcoin core, and run a daemon in testnet mode... Then i would create a php/mysql script to use json-rpc in order to generate transactions when a claim was made. Especially when talking about testnet, it's all pretty basic stuff. Just a form an a captcha. When info is posted, enter the ip and timestamp into the db and check if a claim can be made. If true, either make a json-rpc call, or store the info into a db and run a cronjob to query the db and make the transaction on an hourly/daily basis)

You could probably use an open source script like this one to do the same thing:
https://github.com/tuaris/FaucetRPC

(disclaimer: just found this script by searching github, i have no idear if this one is secure).

EDIT: if it's 100% sure testnet only, i'd be willing to invest a couple of hours in order to write something up whenever i have some time (might take a couple of weeks tough)

Would be awesome, thanks. Yes, pure testnet  Wink
I'll check out the link too!

Since i had a couple of hours today, i quickly made a proof of concept testnet faucet:
https://github.com/mocacinno/simple_testnet_faucet

It's a PROOF OF CONCEPT TESTNET FAUCET, DO NOT RUN IT ON THE MAIN NET!!!!! It will work, but your funds will be drained in mere days
I did nothing, repeat nothing, to avoid abuse of this system, nor did i check for security vulnerabiltys...

If you want to use this faucet as a mainnet faucet, you'll have to extend/fix/patch this code and at least:
- check for possible vulnerabilitys
- add ref system (add a table, insert each address as a user, keep track of the referring user, when running cronjob.php insert record in the faucet table to pay out refferer)
- kick bots
- kick proxy's
- kick VPN's
- kick tor
- create blacklist
- create admin page
- add extra checks: 1 claim per ip, 1 claim per address,...
- add captcha
- make a nice gui
- add an installation script
- add bitcoin.conf sample
- implement session
- implement ad management
- test the hell out of it
- ...
hero member
Activity: 623
Merit: 501
October 27, 2016, 07:26:33 AM
#3
Hi guys,

Can anyone advise me in installing a testnet bitcoin faucet? I already have a webhosting and I can use various CMS (e.g. WP).

Thanks  Wink

I'd probably just install bitcoin core, and run a daemon in testnet mode... Then i would create a php/mysql script to use json-rpc in order to generate transactions when a claim was made. Especially when talking about testnet, it's all pretty basic stuff. Just a form an a captcha. When info is posted, enter the ip and timestamp into the db and check if a claim can be made. If true, either make a json-rpc call, or store the info into a db and run a cronjob to query the db and make the transaction on an hourly/daily basis)

You could probably use an open source script like this one to do the same thing:
https://github.com/tuaris/FaucetRPC

(disclaimer: just found this script by searching github, i have no idear if this one is secure).

EDIT: if it's 100% sure testnet only, i'd be willing to invest a couple of hours in order to write something up whenever i have some time (might take a couple of weeks tough)

Would be awesome, thanks. Yes, pure testnet  Wink
I'll check out the link too!
legendary
Activity: 3584
Merit: 5248
https://merel.mobi => buy facemasks with BTC/LTC
October 27, 2016, 07:07:15 AM
#2
Hi guys,

Can anyone advise me in installing a testnet bitcoin faucet? I already have a webhosting and I can use various CMS (e.g. WP).

Thanks  Wink

I'd probably just install bitcoin core, and run a daemon in testnet mode... Then i would create a php/mysql script to use json-rpc in order to generate transactions when a claim was made. Especially when talking about testnet, it's all pretty basic stuff. Just a form an a captcha. When info is posted, enter the ip and timestamp into the db and check if a claim can be made. If true, either make a json-rpc call, or store the info into a db and run a cronjob to query the db and make the transaction on an hourly/daily basis)

You could probably use an open source script like this one to do the same thing:
https://github.com/tuaris/FaucetRPC

(disclaimer: just found this script by searching github, i have no idear if this one is secure).

EDIT: if it's 100% sure testnet only, i'd be willing to invest a couple of hours in order to write something up whenever i have some time (might take a couple of weeks tough)
hero member
Activity: 623
Merit: 501
October 27, 2016, 07:02:18 AM
#1
Hi guys,

Can anyone advise me in installing a testnet bitcoin faucet? I already have a webhosting and I can use various CMS (e.g. WP).

Thanks  Wink
Jump to: