Author

Topic: Need some faucetbox help. (Read 266 times)

legendary
Activity: 2352
Merit: 1268
In Memory of Zepher
May 27, 2016, 06:40:30 PM
#2
This would require some extra PHP coding to be done properly. It would all be pretty simple stuff, but can be complicated to implement should you not know PHP/the FaucetBox script too well. The process of it would probably go something like this however:

User Presses Claim Button -> Script checks whether the Captcha has been solved correctly -> A CSRF token is created by the script to prevent abuse -> The script redirects to the Adf.ly page which redirects back to the claim page -> The page checks the HTTP_REFERRER to see if it is Adf.ly (However this is unreliable as HTTP headers can be changed manually) -> CSRF token is checked to be sure that the user did actually come from the original claim page (and perhaps checked against a timestamp to stop abuse) -> Faucet pays satoshi to user.

There are a lot of steps to doing something like this in order to make it all work nicely and secure. If you're not too confident at PHP I would recommend hiring someone to do the job for you or be prepared for your funds to be stolen if a bug is found. It would also be pretty annoying for users to have to deal with for users, so your rewards would probably have to be higher to compensate.
member
Activity: 112
Merit: 10
May 27, 2016, 06:18:29 PM
#1
I want to make it so when someone clicks on the claim button they get redirected to a adf.ly link then back to the site
How can I do this
Jump to: