Someone asked me about the script of my faucets. Since it is nothing complicated I decided to share it with everyone here.
I think this script may be useful for educational purposes. You may even try to run your own faucet on it if you are brave. Keep in mind however that it doesn't have many security features (if you know PHP, feel free to improve it!).
Download Simple Faucet Script by Lokio
The script was written in PHP and requires curl and sqlite modules enabled (any PHP hosting have them enabled, except maybe some free ones).
No external database is needed, because everything is saved in text files.
Easy to understand. The whole code fits in 260 lines of a single file.
That's all you need to start your first simple faucet. I recommend however to change other settings in the index.php file. For example: claim value, time to wait between claims, referral commission etc. If you have hcaptcha.com account, you should provide your keys so that it is more difficult to cheat the faucet.
If you started your own faucet, please let me know, so that I can add it to my list of faucets.