Author

Topic: New Xapo faucet script with full updates Download (Read 601 times)

hero member
Activity: 504
Merit: 501
I tried to block the firefox users on my faucet (faucetbox) and well, no success..
only blocking a laarge number of ASN worked against bots..
is it working for you?
I have it set up so it only blocks for claiming.
legendary
Activity: 2688
Merit: 2297

I tried to block the firefox users on my faucet (faucetbox) and well, no success..
only blocking a laarge number of ASN worked against bots..
is it working for you?
ASN blocking is much better than blocking the browser or using .htaccess, but we need to find a codes or scripts that will fit in to Gifted's Xapo faucet script.

Steal the php code from the faucetinabox script  Roll Eyes
Send a PM to the FaucetBox owner asking if you can do it.. however I think it's free for all http://nastyhosts.com/

I think that's the php code and you'll need to create 3,4 sql tables

Code:
$security_settings = array();
    $nastyhosts_enabled = $sql->query("SELECT `value` FROM `Faucetinabox_Settings` WHERE `name` = 'nastyhosts_enabled' ")->fetch();
    if ($nastyhosts_enabled && $nastyhosts_enabled[0]) {
        $security_settings["ip_check_server"] = getNastyHostsServer();
    } else {
        $security_settings["ip_check_server"] = "";
    }

    $q = $sql->query("SELECT `name`, `value` FROM `Faucetinabox_Settings` WHERE `name` in ('ip_ban_list', 'hostname_ban_list', 'address_ban_list', 'asn_ban_list', 'country_ban_list')");
    while($row = $q->fetch()) {
        if(stripos($row["name"], "_list") !== false) {
            $security_settings[$row["name"]] = array();
            if(preg_match_all("/[^,;\s]+/", $row["value"], $matches)) {
                foreach($matches[0] as $m) {
                    $security_settings[$row["name"]][] = $m;
                }
            }
        } else {
            $security_settings[$row["name"]] = $row["value"];
        }
    }

    if($_SERVER["REQUEST_METHOD"] == "POST") {
        if($security_settings["ip_check_server"]) {
            if(!preg_match("#/$#", $security_settings["ip_check_server"])) {
                $security_settings["ip_check_server"] .= "/";
            }
        }

        // banning
        $ip = ip2long(getIP());
        if($ip) { // only ipv4 supported here
            foreach($security_settings["ip_ban_list"] as $ban) {
                if(ipSubnetCheck($ip, $ban)) {
                    banned();
                }
            }
        }

        if($security_settings["ip_check_server"]) {

            $hostnames = @file_get_contents($security_settings["ip_check_server"].getIP());
            $hostnames = json_decode($hostnames);

            if($hostnames && property_exists($hostnames, "status") && $hostnames->status == 200) {
                if(property_exists($hostnames, 'suggestion') && $hostnames->suggestion == "deny") {
                    banned();
                }

                if (property_exists($hostnames, "asn") && property_exists($hostnames->asn, "asn")) {
                    foreach ($security_settings["asn_ban_list"] as $ban) {
                        if ($ban == $hostnames->asn->asn) {
                            banned();
                        }
                    }
                }

                if (property_exists($hostnames, "country") && property_exists($hostnames->country, "code")) {
                    foreach ($security_settings["country_ban_list"] as $ban) {
                        if ($ban == $hostnames->country->code) {
                            banned();
                        }
                    }
                }

                if(property_exists($hostnames, 'hostnames')) {
                    foreach($security_settings["hostname_ban_list"] as $ban) {
                        foreach($hostnames->hostnames as $hostname) {
                            if(stripos($hostname, $ban) !== false) {
                                banned();
                            }
                        }
                    }
                }

            }
        }
        $fake_address_input_used = false;
        if(!empty($_POST["address"])) {
            $fake_address_input_used = true;
        }
    }
}

For example if you ban the ASN of QuadraNet, you will block this big list of IP ranges.. https://www.enjen.net/asn-blocklist/index.php?asn=8100&type=iplist
easy to block  Cool
hero member
Activity: 546
Merit: 500
I have studied the bots and they all use old firefox browsers and so it was just easier

Is it than not possible to block the user-agent of the old firefox not the hole firefox (moziila) user-agent ? ..

just my 2 satoshis
If the user agent includes the version number of the browser, then it is much easier. Try to query the browsers using the same PHP code and see if the version number is also included.

I tried to block the firefox users on my faucet (faucetbox) and well, no success..
only blocking a laarge number of ASN worked against bots..
is it working for you?
ASN blocking is much better than blocking the browser or using .htaccess, but we need to find a codes or scripts that will fit in to Gifted's Xapo faucet script.
legendary
Activity: 2688
Merit: 2297
I tried to block the firefox users on my faucet (faucetbox) and well, no success..
only blocking a laarge number of ASN worked against bots..
is it working for you?
hero member
Activity: 504
Merit: 501
I have studied the bots and they all use old firefox browsers and so it was just easier

Is it than not possible to block the user-agent of the old firefox not the hole firefox (moziila) user-agent ? ..

just my 2 satoshis
not sure
full member
Activity: 238
Merit: 100
I have studied the bots and they all use old firefox browsers and so it was just easier

Is it than not possible to block the user-agent of the old firefox not the hole firefox (moziila) user-agent ? ..

just my 2 satoshis
hero member
Activity: 504
Merit: 501
This file contains the download for the Xapo faucet + all the  Security updates including balance for non Xapo and balance of your Xapo

https://github.com/goldkey0070/Faucet-Builder/archive/master.zip



Enjoy!
Showing balances to users is not a kind of security update . This is just a feature update only .
if you updated security features than please mention here.
Btw what are those security updates?
security updates includes : Firefox will not work with this script because of bots using firefox. It will tell them to use chrome.
proxies fix when they claim wont pay but can still go to the page
Made so right click wont work or any ctr keys that can hurt the faucet.

timer hack  flaw has been fixed

.htaccess was uploaded to kill Tor


Good updates but blocking a particular browser is it good for facets because many users will face issues and they may drop the thinking of faucting.
is there any alternative ideas instead blocking firefox.
I have studied the bots and they all use old firefox browsers and so it was just easier
hero member
Activity: 868
Merit: 500
This file contains the download for the Xapo faucet + all the  Security updates including balance for non Xapo and balance of your Xapo

https://github.com/goldkey0070/Faucet-Builder/archive/master.zip



Enjoy!
Showing balances to users is not a kind of security update . This is just a feature update only .
if you updated security features than please mention here.
Btw what are those security updates?
security updates includes : Firefox will not work with this script because of bots using firefox. It will tell them to use chrome.
proxies fix when they claim wont pay but can still go to the page
Made so right click wont work or any ctr keys that can hurt the faucet.

timer hack  flaw has been fixed

.htaccess was uploaded to kill Tor


Good updates but blocking a particular browser is it good for facets because many users will face issues and they may drop the thinking of faucting.
is there any alternative ideas instead blocking firefox.
hero member
Activity: 504
Merit: 501
This file contains the download for the Xapo faucet + all the  Security updates including balance for non Xapo and balance of your Xapo

https://github.com/goldkey0070/Faucet-Builder/archive/master.zip



Enjoy!
Showing balances to users is not a kind of security update . This is just a feature update only .
if you updated security features than please mention here.
Btw what are those security updates?
security updates includes : Firefox will not work with this script because of bots using firefox. It will tell them to use chrome.
proxies fix when they claim wont pay but can still go to the page
Made so right click wont work or any ctr keys that can hurt the faucet.

timer hack  flaw has been fixed

.htaccess was uploaded to redirect Tor to another page like mine does


you can test here http://www.bitcoinfaucetexchange.com/
hero member
Activity: 868
Merit: 500
This file contains the download for the Xapo faucet + all the  Security updates including balance for non Xapo and balance of your Xapo

https://github.com/goldkey0070/Faucet-Builder/archive/master.zip



Enjoy!
Showing balances to users is not a kind of security update . This is just a feature update only .
if you updated security features than please mention here.
Btw what are those security updates?
hero member
Activity: 504
Merit: 501
This file contains the download for the Xapo faucet + all the  Security updates including balance for non Xapo and balance of your Xapo

https://github.com/goldkey0070/Faucet-Builder/archive/master.zip

https://github.com/goldkey0070/Faucet-Builder

Security updates includes : Firefox will not work with this script because of bots using Firefox. It will tell them to use chrome.
Proxies fix when they claim wont pay but can still go to the page
Made so right click wont work or any ctr keys that can hurt the faucet.
Added ad block message to please disable ad-block before claiming in 4 languages  + must have JavaScript enabled code
Timer hack  flaw has been fixed
Iframe break code so that rotators will not eat your BTC and will kill the rotator but go to your faucet instead
.htaccess was uploaded to redirect Tor to another page like mine does


You can test here http://www.bitcoinfaucetexchange.com

Enjoy!

Jump to: