Author

Topic: FaucetBOX.com Discussion - page 111. (Read 237020 times)

hero member
Activity: 686
Merit: 500
October 19, 2015, 09:13:51 AM
Already left the r61 Smiley, but I see this error in the error_log, what?

Code:
PHP Notice:  Undefined variable: fake_address_input_used in /index.php on line 2336
Same here. It's has something to do with the hidden honeypot fields.
sr. member
Activity: 350
Merit: 250
October 19, 2015, 05:12:43 AM
Already left the r61 Smiley, but I see this error in the error_log, what?

Code:
PHP Notice:  Undefined variable: fake_address_input_used in /index.php on line 2336
sr. member
Activity: 350
Merit: 250
October 18, 2015, 06:31:48 PM
Please don't top-post, it's confusing Smiley.

If you had a code with file('https://www.dan.me.uk/torlist/'); in your index.php right before you created tor.php, then it already used the limit of 1 request per 30 minutes. Wait till your cron runs again and see if it's correct then.

If it's not, then - as you're probably on a shared hosting - someone else on your server is also requesting this list. Then there's nothing you can do about that without changing hosting. What I can suggest in that case is either using Nastyhosts.com or the official list from Tor Project.
OK thank you, because I changed the cron to 30 minutes and now if ran
 Grin  Wink
legendary
Activity: 971
Merit: 1000
October 18, 2015, 06:04:39 PM
But it is the first time that I put it, and I put an hour to cron

Please don't top-post, it's confusing Smiley.

If you had a code with file('https://www.dan.me.uk/torlist/'); in your index.php right before you created tor.php, then it already used the limit of 1 request per 30 minutes. Wait till your cron runs again and see if it's correct then.

If it's not, then - as you're probably on a shared hosting - someone else on your server is also requesting this list. Then there's nothing you can do about that without changing hosting. What I can suggest in that case is either using Nastyhosts.com or the official list from Tor Project.
sr. member
Activity: 350
Merit: 250
October 18, 2015, 05:57:10 PM
But it is the first time that I put it, and I put an hour to cron

He left me this message in the file

Code:
Umm... You can only fetch the data every 30 minutes - sorry.  It's pointless any faster as I only update every 30 minutes anyway.
If you keep trying to download this list too often, you may get blocked from accessing it completely.
(this is due to some people trying to download this list every minute!)

You can't run tor.php more than once every 30 minutes.
legendary
Activity: 971
Merit: 1000
October 18, 2015, 05:53:56 PM
He left me this message in the file

Code:
Umm... You can only fetch the data every 30 minutes - sorry.  It's pointless any faster as I only update every 30 minutes anyway.
If you keep trying to download this list too often, you may get blocked from accessing it completely.
(this is due to some people trying to download this list every minute!)

You can't run tor.php more than once every 30 minutes.
sr. member
Activity: 350
Merit: 250
October 18, 2015, 05:13:11 PM
He left me this message in the file

Code:
Umm... You can only fetch the data every 30 minutes - sorry.  It's pointless any faster as I only update every 30 minutes anyway.
If you keep trying to download this list too often, you may get blocked from accessing it completely.
(this is due to some people trying to download this list every minute!)
Go here is code?

Code:
snip
Yes, but you will need to edit it slightly due to what NeedIfFindIt pointed out.

Since you can only access the list once every 30 minutes, you will need to set up a CRON job every 30 minutes to 1 hour or so to get an up to date list. Luckily this is fairly simple to do.
You will just need a file with this code inside (call it tor.php or something similar):
Code:
$torList file_get_contents('https://www.dan.me.uk/torlist/');
file_put_contents('torlist.txt'$torList);
?>

This will get the code from the torlist and store it in your server under torlist.txt. To set up a CRON job, you will have to look on your cPanel and find where 'CRON Jobs' or 'Scheduled Tasks' are. Simply link that to tor.php and set it to run every hour or so.

Next, you will need to edit the check slightly. Instead of this:
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
It will have to be this:
Code:
foreach(file('torlist.txt') as $torIP){
sr. member
Activity: 350
Merit: 250
October 18, 2015, 03:44:31 PM
Great friend

Go here is code?

Code:
snip
Yes, but you will need to edit it slightly due to what NeedIfFindIt pointed out.

Since you can only access the list once every 30 minutes, you will need to set up a CRON job every 30 minutes to 1 hour or so to get an up to date list. Luckily this is fairly simple to do.
You will just need a file with this code inside (call it tor.php or something similar):
Code:
$torList file_get_contents('https://www.dan.me.uk/torlist/');
file_put_contents('torlist.txt'$torList);
?>

This will get the code from the torlist and store it in your server under torlist.txt. To set up a CRON job, you will have to look on your cPanel and find where 'CRON Jobs' or 'Scheduled Tasks' are. Simply link that to tor.php and set it to run every hour or so.

Next, you will need to edit the check slightly. Instead of this:
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
It will have to be this:
Code:
foreach(file('torlist.txt') as $torIP){
legendary
Activity: 971
Merit: 1000
October 18, 2015, 12:12:01 PM
Can i do this to block tor ips?
By going to https://www.dan.me.uk/torlist/, can I copy and paste these IPs into my IP blacklist in the security tab on my faucetinabox admin page? Or do I have to do something more?
If you're planning to do this, I would suggest having your code do it automatically to save you trouble and increase security.
To do this, I believe that you can just input this code at line 1512:
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
     if(ipSubnetCheck($ip, $torIP)){
          banned();
     }
}
If this is incorrect, please correct me Kazul; I'm having trouble understanding the code lol.

https://www.dan.me.uk/torlist/ will return the tor list once every 30 minutes.

To be honest I'm not sure if using this list is a good idea at all. It lists all Tor nodes, including relay nodes, not only exit nodes. In practice you'll only see exit-nodes on your faucet, so I think it's better to use the official list: https://check.torproject.org/exit-addresses

EDIT: also Nastyhosts.com uses https://check.torproject.org/exit-addresses as one of sources, so you can just use it to block Tor.
legendary
Activity: 2352
Merit: 1268
In Memory of Zepher
October 18, 2015, 12:05:40 PM
Go here is code?

Code:
snip
Yes, but you will need to edit it slightly due to what NeedIfFindIt pointed out.

Since you can only access the list once every 30 minutes, you will need to set up a CRON job every 30 minutes to 1 hour or so to get an up to date list. Luckily this is fairly simple to do.
You will just need a file with this code inside (call it tor.php or something similar):
Code:
$torList file_get_contents('https://www.dan.me.uk/torlist/');
file_put_contents('torlist.txt'$torList);
?>

This will get the code from the torlist and store it in your server under torlist.txt. To set up a CRON job, you will have to look on your cPanel and find where 'CRON Jobs' or 'Scheduled Tasks' are. Simply link that to tor.php and set it to run every hour or so.

Next, you will need to edit the check slightly. Instead of this:
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
It will have to be this:
Code:
foreach(file('torlist.txt') as $torIP){
sr. member
Activity: 350
Merit: 250
October 18, 2015, 11:49:23 AM
Go here is code?

Code:
    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();
                }
            }
----> foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
                              if(getIP() == trim($torIP)){
                                    banned();
                                      }
----->                     }
        }

        if($security_settings["ip_check_server"]) {

full member
Activity: 500
Merit: 100
October 18, 2015, 11:41:36 AM
Can i do this to block tor ips?
By going to https://www.dan.me.uk/torlist/, can I copy and paste these IPs into my IP blacklist in the security tab on my faucetinabox admin page? Or do I have to do something more?
If you're planning to do this, I would suggest having your code do it automatically to save you trouble and increase security.
To do this, I believe that you can just input this code at line 1512:
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
     if(ipSubnetCheck($ip, $torIP)){
          banned();
     }
}
If this is incorrect, please correct me Kazul; I'm having trouble understanding the code lol.

Do you read that at the header of the list.

" Please keep in mind that this list is not moderated by FaucetBOX.com Staff."
That is irrelevant to his question.

I think it depends on how many people are visiting.
I was going to say that it might be on the like to dislike ratio, but looking at the list that doesn't seem like it would work.

https://www.dan.me.uk/torlist/ will return the tor list once every 30 minutes.

You need to make a script to download the list locally every 35 minutes. Then use your local file to compare.

Otherwise you are not really stopping the tor users.
sr. member
Activity: 392
Merit: 251
Bitcoin Faucet & Blog
October 18, 2015, 11:20:02 AM
Hi...

I'm trying to change the Faucetbox code to give different reward according to the country.

Where is the code that define/set de reward to be paid? I want to put some IFs/Switches/Cases there.

Thank you.

I think your best bet is changing $data['rewards'] right before line 2156 (if you're using r60) in main index.php.
Thank you.

I spent some good hours this evening and now It works. GeoLocation Rewards is really a very good feature. You should think about include this feature in a future realease.

Well.. Help me with one more doubt please. Has Faucetbox the lifetime referral option?
legendary
Activity: 971
Merit: 1000
October 18, 2015, 11:03:40 AM
Can i do this to block tor ips?
By going to https://www.dan.me.uk/torlist/, can I copy and paste these IPs into my IP blacklist in the security tab on my faucetinabox admin page? Or do I have to do something more?
If you're planning to do this, I would suggest having your code do it automatically to save you trouble and increase security.
To do this, I believe that you can just input this code at line 1512:
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
     if(ipSubnetCheck($ip, $torIP)){
          banned();
     }
}
If this is incorrect, please correct me Kazul; I'm having trouble understanding the code lol.

That's close, but this list provides IP addresses, not networks. So it should be something more like this (I didn't test it though):
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
     if(getIP() == trim($torIP)){
          banned();
     }
}

what determines the order of the faucetlist? I pay more and have been running longer than some of these new faucets which are popping up above me.

Likes and dislikes only.
legendary
Activity: 2352
Merit: 1268
In Memory of Zepher
October 18, 2015, 09:54:02 AM
Can i do this to block tor ips?
By going to https://www.dan.me.uk/torlist/, can I copy and paste these IPs into my IP blacklist in the security tab on my faucetinabox admin page? Or do I have to do something more?
If you're planning to do this, I would suggest having your code do it automatically to save you trouble and increase security.
To do this, I believe that you can just input this code at line 1512:
Code:
foreach(file('https://www.dan.me.uk/torlist/') as $torIP){
     if(ipSubnetCheck($ip, $torIP)){
          banned();
     }
}
If this is incorrect, please correct me Kazul; I'm having trouble understanding the code lol.

Do you read that at the header of the list.

" Please keep in mind that this list is not moderated by FaucetBOX.com Staff."
That is irrelevant to his question.

I think it depends on how many people are visiting.
I was going to say that it might be on the like to dislike ratio, but looking at the list that doesn't seem like it would work.
sr. member
Activity: 322
Merit: 250
Bonus Claim Url: http://betonline.wager.bz
October 18, 2015, 09:41:56 AM
what determines the order of the faucetlist? I pay more and have been running longer than some of these new faucets which are popping up above me.

Do you read that at the header of the list.

" Please keep in mind that this list is not moderated by FaucetBOX.com Staff."

I think it depends on how many people are visiting.
hero member
Activity: 603
Merit: 500
October 18, 2015, 08:26:14 AM
what determines the order of the faucetlist? I pay more and have been running longer than some of these new faucets which are popping up above me.
legendary
Activity: 971
Merit: 1000
October 18, 2015, 05:04:36 AM
Hi...

I'm trying to change the Faucetbox code to give different reward according to the country.

Where is the code that define/set de reward to be paid? I want to put some IFs/Switches/Cases there.

Thank you.

I think your best bet is changing $data['rewards'] right before line 2156 (if you're using r60) in main index.php.
sr. member
Activity: 392
Merit: 251
Bitcoin Faucet & Blog
October 17, 2015, 11:44:38 PM
Hi...

I'm trying to change the Faucetbox code to give different reward according to the country.

Where is the code that define/set de reward to be paid? I want to put some IFs/Switches/Cases there.

Thank you.
full member
Activity: 168
Merit: 100
October 17, 2015, 05:48:57 AM
What do you think to make your faucetbox faucet script mobilefriendly.
Jump to: