Author

Topic: Bots attacked? (Read 1289 times)

sr. member
Activity: 289
Merit: 250
May 07, 2016, 12:53:25 PM
#33
Will you please show proper coding of this anti-bot you mention above with line number where we have to put it.I really need it because my faucet is full of bots.Faucetbox admin panel show around 6000 claims/day but google adsense show only 800. Sad

I don't wanna refill my wallet till i fix it so please help me & give some advice .

This code insert in 2-3 rows of index.php, after "
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000);
setcookie("Combat",time(), time()+3000);

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

Code:
if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))
{
banned();
}

Function "banned()" already in faucetbox script, so, that's all you have to do.

Do not forget use timer on button "Get reward".


im using antibots link and i have this problem i needed to delete the default button and now the  button shows straigh away to do the antibots stuff

also in wich index we put this code in the template or in the root folder
member
Activity: 115
Merit: 10
May 07, 2016, 09:51:59 AM
#32
Thanks for help, I create table in DB with your commend.
My site is connected to DB (satoshi are sended and adresses are recorded in DB - so I think it's ok).
So now I have to wait is any IP get catch to my log_faucets table Smiley

So? Have you result?

I don't have any records in log_faucets table. I don't know is it possible that my faucet is blear from bots.
(I use nasty hosts protection)
newbie
Activity: 25
Merit: 0
May 07, 2016, 07:06:50 AM
#31
Is there any way of logging the Invalid and successful CAPTCHAS?

So successful and non successful responses can be added to log file somewhere or a new one entirely? I'm thinking Fail2Ban can then be configured on that log file to trigger temp ban. Then maybe a additional permanent blacklist rule could be made on fail rate  Wink
member
Activity: 65
Merit: 10
May 06, 2016, 04:14:40 PM
#30
Thanks for help, I create table in DB with your commend.
My site is connected to DB (satoshi are sended and adresses are recorded in DB - so I think it's ok).
So now I have to wait is any IP get catch to my log_faucets table Smiley

So? Have you result?
member
Activity: 115
Merit: 10
May 05, 2016, 04:08:03 PM
#29
Thanks for help, I create table in DB with your commend.
My site is connected to DB (satoshi are sended and adresses are recorded in DB - so I think it's ok).
So now I have to wait is any IP get catch to my log_faucets table Smiley
member
Activity: 65
Merit: 10
May 05, 2016, 03:42:24 PM
#28
Am I do it right?



I want to ask because I don't have any knowledge about sql and php.

1. Are you create this table (log_faucets) in your database?
2. Are you connect to database in your script? Do not post connection string to forum coz you can lose your money.
3. Move "{" up to string with "$ra = getIP();" - it's border of IF statement (must be "{$ra = getIP();")

1, 2 you can google how to using DB, or i can help
member
Activity: 115
Merit: 10
May 05, 2016, 03:28:29 PM
#27
Am I do it right?



I want to ask because I don't have any knowledge about sql and php.
member
Activity: 65
Merit: 10
May 05, 2016, 02:54:30 PM
#26
Thanks Smiley
Where I can find banned IP list?

You can find it in your webserver's logs (error code 403), or you can use code such as:

Code:
$ra = getIP();
$fname = $_SERVER['SERVER_NAME'];

$sql = "INSERT INTO log_faucets (ip, fname)
VALUES
('$ra', '$fname')";

mysql_query($sql, $link);

in IF statement (when cheked, is user legal, listing posted in first post), and logs with banned IPs will be accumulated in database table 'log_faucets'. Sure, you must create this table before:

Code:
CREATE TABLE IF NOT EXISTS `log_faucets` (
  `ip` varchar(50) NOT NULL,
  `fname` varchar(100) NOT NULL,
  `DT` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Where 'ip' - banned ip
'fname' - faucet's name (if you use some faucets)
'DT' - datetime of impression

And later you can use this list in .htaccess or check IP in future impressions for preventive ban.
member
Activity: 115
Merit: 10
May 05, 2016, 01:52:10 PM
#25
Thanks Smiley
Where I can find banned IP list?
member
Activity: 65
Merit: 10
May 04, 2016, 05:12:35 PM
#24
Can I use this script with 15 second timer?

Sure. Just set timeout:
Code:
if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))

15, not 50.

Recomended set 10 sec, when page loaded
member
Activity: 115
Merit: 10
May 04, 2016, 03:47:41 PM
#23
Can I use this script with 15 second timer?
member
Activity: 65
Merit: 10
May 04, 2016, 02:24:13 PM
#22
This code works well, but I was wondering is there is any way you could use this together with the AntiBotLinks script?

You can use this code with any another AntiBotLinks script
member
Activity: 105
Merit: 100
retired since 2019;find me online:functionallyvoid
May 03, 2016, 04:46:14 PM
#21
This code works well, but I was wondering is there is any way you could use this together with the AntiBotLinks script?
newbie
Activity: 25
Merit: 0
May 01, 2016, 04:51:23 PM
#20
Nice  Grin very nice.. I will be giving this a try to say to the least. Thank you
member
Activity: 65
Merit: 10
April 27, 2016, 10:37:05 AM
#19
member
Activity: 65
Merit: 10
April 27, 2016, 10:36:13 AM
#18
Thank you for this. Over the weekend I got ripped by the bots and need to shut down. I'm taking now all the measures before the relaunch.

U r wellcome %)
full member
Activity: 210
Merit: 100
April 27, 2016, 10:33:37 AM
#17
How to install?
newbie
Activity: 24
Merit: 0
April 27, 2016, 01:41:45 AM
#16
Thank you for this. Over the weekend I got ripped by the bots and need to shut down. I'm taking now all the measures before the relaunch.
full member
Activity: 206
Merit: 100
April 26, 2016, 02:40:47 AM
#15
legendary
Activity: 994
Merit: 1000
April 25, 2016, 09:58:43 AM
#14
You can use flash-cookies instead the browser cookies. Is not so easy to manipulate.
Could you give some detail about how to set those flash cookie up. I now gonna implement this cookie method in my another script not a faucetbox account but i think this will also be good for any site.
full member
Activity: 206
Merit: 100
April 25, 2016, 03:49:15 AM
#13
You can use flash-cookies instead the browser cookies. Is not so easy to manipulate.
member
Activity: 65
Merit: 10
April 25, 2016, 03:16:51 AM
#12
Will you please show proper coding of this anti-bot you mention above with line number where we have to put it.I really need it because my faucet is full of bots.Faucetbox admin panel show around 6000 claims/day but google adsense show only 800. Sad

I don't wanna refill my wallet till i fix it so please help me & give some advice .

This code insert in 2-3 rows of index.php, after "
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000);
setcookie("Combat",time(), time()+3000);

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

Code:
if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))
{
banned();
}

Function "banned()" already in faucetbox script, so, that's all you have to do.

Do not forget use timer on button "Get reward".
member
Activity: 65
Merit: 10
April 25, 2016, 02:59:07 AM
#11

 Is this for faucetbox script?

Yes, this code for faucetbox script, but it will work in another scripts, if you use appropriate functions such as "getip()".
member
Activity: 65
Merit: 10
April 25, 2016, 02:55:59 AM
#10

Oh it works! I have seen how much many people have been banned in just under 1 minute. Most of them from Russia. What i did before to block Russians was to block the whole country but i realized i was losing ads revenue and also i was denying innocent people access because Russia Uses the the most spam bots and proxies. But that i have something like this, i don't have to worry about the spammers and their spambots! Thank you, now my ad revenue and page views are picking up, i have had more than 20000pageviews under 6hours! Whoop Whoop!

Good luck in your work Smiley
member
Activity: 112
Merit: 10
★★SatoshiCollector.co.uk★★
April 25, 2016, 12:14:48 AM
#9
Will you please show proper coding of this anti-bot you mention above with line number where we have to put it.I really need it because my faucet is full of bots.Faucetbox admin panel show around 6000 claims/day but google adsense show only 800. Sad

I don't wanna refill my wallet till i fix it so please help me & give some advice .
hero member
Activity: 762
Merit: 500
April 24, 2016, 07:14:50 PM
#8
Hi all!

So, how can i see, bots is the really zaebali (sorry for my french).

I had used antibot script and .htaccess.
My ban list you can see in http://octopus.pp.ua/BAN.txt . It consist proxies and TOR's IP's. Manually checked every day, when i had attacked by bots. Yes, i'm nerd Smiley

And antibot script. I had set timeout in "Get reward" button in 60 sec, and set coockies with time of impression from user. When user click to "Get reward" button, i have check, is 60 sec out. So, when bots attack again, i will change that to save it in session.

If you want, you can use my experience.

1. Open your index file and add in first
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000);
setcookie("Combat",time(), time()+3000);

"Mortal" saved current ip of user
"Combat" saved current time of visit

2. In "POST" section add:
Code:
	if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))
{
banned();
}

Where function banned(); is

Code:
function banned() {
    trigger_error("Banned: ".getIP());
    http_response_code(403);
    die();
}

So, with that code and .htaccess i defence my faucets.

Good luck!
Is this for faucetbox script?
member
Activity: 81
Merit: 10
April 24, 2016, 07:08:41 PM
#7
All set now, thank you!

U r wellcome %) I hope, that's can help against bots

Oh it works! I have seen how much many people have been banned in just under 1 minute. Most of them from Russia. What i did before to block Russians was to block the whole country but i realized i was losing ads revenue and also i was denying innocent people access because Russia Uses the the most spam bots and proxies. But that i have something like this, i don't have to worry about the spammers and their spambots! Thank you, now my ad revenue and page views are picking up, i have had more than 20000pageviews under 6hours! Whoop Whoop!
member
Activity: 65
Merit: 10
April 24, 2016, 11:50:38 AM
#6
All set now, thank you!

U r wellcome %) I hope, that's can help against bots
member
Activity: 81
Merit: 10
April 24, 2016, 10:27:59 AM
#5
All set now, thank you!
member
Activity: 81
Merit: 10
April 24, 2016, 10:13:43 AM
#4
Hi all!

So, how can i see, bots is the really zaebali (sorry for my french).

I had used antibot script and .htaccess.
My ban list you can see in http://octopus.pp.ua/BAN.txt . It consist proxies and TOR's IP's. Manually checked every day, when i had attacked by bots. Yes, i'm nerd Smiley

And antibot script. I had set timeout in "Get reward" button in 60 sec, and set coockies with time of impression from user. When user click to "Get reward" button, i have check, is 60 sec out. So, when bots attack again, i will change that to save it in session.

If you want, you can use my experience.

1. Open your index file and add in first
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000);
setcookie("Combat",time(), time()+3000);

"Mortal" saved current ip of user
"Combat" saved current time of visit

2. In "POST" section add:
Code:
	if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))
{
banned();
}

Where function banned(); is

Code:
function banned() {
    trigger_error("Banned: ".getIP());
    http_response_code(403);
    die();
}

So, with that code and .htaccess i defence my faucets.

Good luck!

Hey after putting the codes my own IP address gets blocked, What can i do?

U must wait 1 min before claim. Or, you can set another timout in
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000); 

And

Code:
if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))

First code mean lifetime of cookies is 50 min, second - check, is 50 sec is out when user click button
So should i make sure my browser is also enabled to save cookies because i think my browser is set to block cookies from websites
member
Activity: 65
Merit: 10
April 24, 2016, 09:59:59 AM
#3
Hi all!

So, how can i see, bots is the really zaebali (sorry for my french).

I had used antibot script and .htaccess.
My ban list you can see in http://octopus.pp.ua/BAN.txt . It consist proxies and TOR's IP's. Manually checked every day, when i had attacked by bots. Yes, i'm nerd Smiley

And antibot script. I had set timeout in "Get reward" button in 60 sec, and set coockies with time of impression from user. When user click to "Get reward" button, i have check, is 60 sec out. So, when bots attack again, i will change that to save it in session.

If you want, you can use my experience.

1. Open your index file and add in first
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000);
setcookie("Combat",time(), time()+3000);

"Mortal" saved current ip of user
"Combat" saved current time of visit

2. In "POST" section add:
Code:
	if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))
{
banned();
}

Where function banned(); is

Code:
function banned() {
    trigger_error("Banned: ".getIP());
    http_response_code(403);
    die();
}

So, with that code and .htaccess i defence my faucets.

Good luck!

Hey after putting the codes my own IP address gets blocked, What can i do?

U must wait 1 min before claim. Or, you can set another timout in
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000); 

And

Code:
if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))

First code mean lifetime of cookies is 50 min, second - check, is 50 sec is out when user click button
member
Activity: 81
Merit: 10
April 24, 2016, 09:56:38 AM
#2
Hi all!

So, how can i see, bots is the really zaebali (sorry for my french).

I had used antibot script and .htaccess.
My ban list you can see in http://octopus.pp.ua/BAN.txt . It consist proxies and TOR's IP's. Manually checked every day, when i had attacked by bots. Yes, i'm nerd Smiley

And antibot script. I had set timeout in "Get reward" button in 60 sec, and set coockies with time of impression from user. When user click to "Get reward" button, i have check, is 60 sec out. So, when bots attack again, i will change that to save it in session.

If you want, you can use my experience.

1. Open your index file and add in first
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000);
setcookie("Combat",time(), time()+3000);

"Mortal" saved current ip of user
"Combat" saved current time of visit

2. In "POST" section add:
Code:
	if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))
{
banned();
}

Where function banned(); is

Code:
function banned() {
    trigger_error("Banned: ".getIP());
    http_response_code(403);
    die();
}

So, with that code and .htaccess i defence my faucets.

Good luck!

Hey after putting the codes my own IP address gets blocked, What can i do?
member
Activity: 65
Merit: 10
April 24, 2016, 08:16:02 AM
#1
Hi all!

So, how can i see, bots is the really zaebali (sorry for my french).

I had used antibot script and .htaccess.
My ban list you can see in http://octopus.pp.ua/BAN.txt . It consist proxies and TOR's IP's. Manually checked every day, when i had attacked by bots. Yes, i'm nerd Smiley

And antibot script. I had set timeout in "Get reward" button in 60 sec, and set coockies with time of impression from user. When user click to "Get reward" button, i have check, is 60 sec out. So, when bots attack again, i will change that to save it in session.

If you want, you can use my experience.

1. Open your index file and add in first
Code:
setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000);
setcookie("Combat",time(), time()+3000);

"Mortal" saved current ip of user
"Combat" saved current time of visit

2. In "POST" section add:
Code:
	if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50))
{
banned();
}

Where function banned(); is

Code:
function banned() {
    trigger_error("Banned: ".getIP());
    http_response_code(403);
    die();
}

So, with that code and .htaccess i defence my faucets.

Good luck!
Jump to: