Bitcoin Forum
May 08, 2024, 04:38:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Archival / [IGNORE] on: November 17, 2015, 01:51:59 AM
***
2  Economy / Micro Earnings / ☣ CLOUDFLARE ISN'T GOOD FOR FAUCETS ☣ on: November 04, 2015, 04:57:39 PM
Dear Faucet Owners,

If you're using google adsense, do not use cloudflare. I have been using cloudflare for the past couple days, making around $3 a day on my faucet. I thought this was normal as I have been using cloudlfare for as long as I've been using google adsense. However I read on another forum that a lot of people were making less income from their ads while using cloudlfare. Without hesitation I removed the cloudflare nameservers from my domain, waited a few hours, then BAM! I checked my google adsense account, to my surprise I had already made half of what I would make in a day in two hours! I'm not to sure why this is, but I know that google adsense definitely utilizes your IP and masking it through a reverse proxy like cloudlfare is not a good idea.
3  Economy / Economics / Trading guilds, do they exist, are they possible? on: October 22, 2015, 09:40:18 PM
Not to sure how many people played runescape, but I remember that groups of players would create merching clans. Players would buy and sell all at the same time, influencing the price of an item. In theory this could be done with crypto currencies couldn't it? If a group of people with a large enough volume bought and sold alt coins all at the same time, could they influence the price?
4  Economy / Micro Earnings / 〖ⓉⓊⓉⓄⓇⒾⒶⓁ〗 Stop Bots + Proxies From Using Your Faucet on: October 17, 2015, 03:01:53 PM
Everything in this tutorial is being used on my faucet. Check it out HERE to see it in action!



Step 1

In the root directory of your server, there should be a file called .htaccess, HERE'S WHAT MINE LOOKS LIKE Copy and paste it to yours.

This will block all the TOR relays/exit nodes from accessing your website. TOR is good to block because it's one of the main things people use to bypass your time limit. Just google "bypass faucet time limit" you will see that it's one of the ways people bypass your time limit.

To get an updated list of tor exit nodes visit https://www.dan.me.uk/torlist/

Here's a website to paste the IP's, it will generate the proper code for you. http://www.htaccesstools.com/block-ips/



Step Two

In your faucet template, ROOTDIRECTORY/faucet/templates/YOURTEMPLATE/index.php, place this code, anywhere in the <head> tag.

Code:
<?php
if(@fsockopen($_SERVER['REMOTE_ADDR'], 80$errstr$errno1))
die(
"It would apprear you're using a proxy, so please, go fuck yourself!");

function 
checkProxy($ip){
$contactEmail="EMAIL";
$timeout=3
$banOnProability=0.99;

$ch curl_init();
curl_setopt($chCURLOPT_RETURNTRANSFER1);
curl_setopt($chCURLOPT_TIMEOUT$timeout);
curl_setopt($chCURLOPT_URL"http://check.getipintel.net/check.php?ip=$ip");
$response=curl_exec($ch);

curl_close($ch);


if ($response $banOnProability) {
return true;
} else {
if ($response || strcmp($response"") == ) {
//The server returned an error, you might want to do something
//like write to a log file or email yourself
//This could be true due to an invalid input or you've exceeded
//the number of allowed queries. Figure out why this is happening
//because you aren't protected by the system anymore
//Leaving this section blank is dangerous because you assume
//that you're still protected, which is incorrect
//and you might think GetIPIntel isn't accurate anymore
//which is also incorrect.
//failure to implement error handling is bad for the both of us
}
return false;
}
}
$ip=$_SERVER['REMOTE_ADDR'];
if (
checkProxy($ip)) {
echo "It would apprear you're using a proxy, so please, go fuck yourself! <br />";
}
?>


Here's a website to check if your faucet is still vulnerable. http://boomproxy.com/



Step Three

Log into funcaptcha, then click "site settings"


Scroll down and click on the little gear, underneath "setup".

Then scroll down to the "security" tab select "always enhanced". Click save, then wait 5-10 minutes. Your captcha will now be alot harder for bots to bypass.





Step Four

In step four we will be adding a simple math question displayed as an image as a second captcha. Faucet users cannot claim their satoshi until the math question is solved.

Download PHP captcha HERE extract it and add the "captcha" folder to your root directory. If you don't trust that download you can find the original HERE, it will require some configuring though.

Now open your template file (ROOTDIRECTORY/faucet/templates/YOURTEMPLATE/index.php) paste the following code at the very top line above <!DOCTYPE html>:
Code:
<?php session_start(); ?>

Paste the following code where you would like the equation to appear
Code:
<img id="captcha" src="/captcha/securimage_show.php" alt="CAPTCHA Image" />
<br>
<a href="#" onclick="document.getElementById('captcha').src = '/captcha/securimage_show.php?' + Math.random(); return false">[ New Problem ]</a>
<br>
<br>
<input type="text" name="captcha_code" size="10" maxlength="6" />
<br>
<br>

Now you need to create a PHP document. I use a program called Notepad++, however any text editor will work. Create a new document, then paste in the following code:
Code:
<?php>
include_once $_SERVER['DOCUMENT_ROOT'] . '/captcha/securimage.php';

$securimage = new Securimage();

if ($securimage->check($_POST['captcha_code']) == false) {
  // the code was incorrect
  // you should handle the error so that the form processor doesn't continue

  // or you can use the following code if there is no validation or you do not know how
  echo "I'm sorry but you have to answer the math question correctly!.<br /><br />";
  echo "Please go <a href='javascript:history.go(-1)'>back</a> and use a caculator.";
  exit;
}

?>


Keep the document open. Open your faucet index page, it will most likely be index.php in your ROOTDIRECTORY. (Not the template index.php) Now press CTRL+A and select everything and copy it. Go back to the document you were just making and paste it on the very bottom, underneath the ?>  Now save the file as what ever you want, I called mine math.php.

Go back to your faucet template file (ROOTDIRECTORY/faucet/templates/YOURTEMPLATE/index.php) search for the following: <form method="POST" class="form-horizontal" role="form">
on that same line link your PHP file to it like so:
Code:
<form action="math.php" method="POST" class="form-horizontal" role="form">

Now you should have a working math eqution that users have to answer correctly before using your faucet.



I hope this helps other faucet owners, as it's terrible how bots think they can steal our valuable satoshis :3 You try and be nice, by giving people free bitcoins and they feel the need to exploit it.
5  Economy / Micro Earnings / [ANN] ❂ Crypto Land ❂ 1000 Satoshi Every 800 Minutes! on: October 07, 2015, 09:32:58 PM

Your #1 source for free bitcoins!


1000 satoshi every 800 minutes!







Get users to use Crypto Land and earn 420 satoshi every time they use the faucet!





Advertise on Crypto Land for as low as ฿0.000001!




Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!