Example – creating Remote Faucet

See also: Examples List


Let’s create your first Remote Faucet! It is much easier than some people think, and the faucet runs on virtually any hosting, including free ones, and even “limited” hostings, where pages created only via some kind of Page Constructor (such as Blogger, Yola, Weebly, etc. )

Bad news first: In order to create the Remote Faucet, you will also need to create Faucet (sometimes called “Application”) with one of the crypto micro-payment systems.

How it works: Faucet (App) of micro-payment system handles actual Satoshi transfers via API, and the Remote Faucet helps you to dispense the rewards without using any of server scripting.

As a micro-payment system we recommend to use Cryptoo.me, because there you don’t have to fund faucets “out of the pocket” – just claim from other faucet using your Cryptoo.me deposit address (register first), than use the collected Satoshi to fund your faucets.

So, the basic algorithm for embedding the Remote faucet into a web page is: create faucet at micro-payment system, grab the key, using the key create Remote faucet, grab the code, insert it into your web page.

The configuration of the faucets is pretty self-explanatory, the only thing to high-light: As a faucet URL use the actual URL of your page where the faucet code is going to be embedded. For the micro-payment system it is important because you going to receive traffic from Faucets Lists / Rotators, for the Remote Faucet it is essential, because it will work only for the pages only “under” this URL (otherwise anybody could of put your code in any page and you end-up funding somebody else’s visitors). Not mentioning you also will get visitors from Remote Faucet List.

So, after your Remote Faucet is created and configured, on the “Code” tab you will get something like this:

<div id='wmexp-faucet-123687'></div> <script src='https://wmexp.com/faucet/123687/'></script>

Just put the code in your page where you want the faucet to appear.
The code

<div style='max-width:500px; border:1px dotted red;'>
   <div id='wmexp-faucet-123687'></div> 
   <script src='https://wmexp.com/faucet/123687/'></script>
</div>

will show:

There is more than one way to render the Faucet. Beside described above you may, for example, include the https://wmexp.com/faucet/123687/ higher than faucet DIV, and later call wmexp_render_faucet_123687();, like:

<head>
<script src='https://wmexp.com/faucet/123687/'></script>
</head>
<body>
<div id='wmexp-faucet-123687'></div> 
<script>
if(visitor_deserved_the_reward){
  wmexp_render_faucet_123687();
}
</script>
</div>
...

If you want to show different faucets (handy for game bonuses) depends on the satiation,you may include the javascript dynamically:

<div id='wmexp-faucet-TO-BE'></div> 
<script>
if(score > 100){ //player is good
   var faucet_id = 123687;
   document.getElementById('wmexp-faucet-TO-BE').id = 'wmexp-faucet-'+faucet_id; //set actual id
   var script = document.createElement('script'); //create script
   script.src = 'https://wmexp.com/faucet/'+faucet_id+'/'; //set actual url based on faucet id
   document.head.appendChild(script); //add the script - it will render the faucet
}
</script>

Yep, it’s that simple. So, what you want to explore next, use Remote Bitcoin Faucets as a banner click reward, or as a game bonuses? 😉

See more at Examples List