Bitcoin Forum
June 25, 2024, 11:22:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Bots attacked?  (Read 1236 times)
Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 24, 2016, 01:16:02 PM
 #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!

Marteen23
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile
April 24, 2016, 02:56:38 PM
 #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?
Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 24, 2016, 02:59:59 PM
 #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

Marteen23
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile
April 24, 2016, 03:13:43 PM
 #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
Marteen23
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile
April 24, 2016, 03:27:59 PM
 #5

All set now, thank you!
Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 24, 2016, 04:50:38 PM
 #6

All set now, thank you!

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

Marteen23
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile
April 25, 2016, 12:08:41 AM
 #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!
wdnj
Hero Member
*****
Offline Offline

Activity: 762
Merit: 500



View Profile
April 25, 2016, 12:14:50 AM
 #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?
LaStOpTi0N
Member
**
Offline Offline

Activity: 112
Merit: 10

★★SatoshiCollector.co.uk★★


View Profile
April 25, 2016, 05: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 .
Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 25, 2016, 07: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

Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 25, 2016, 07: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()".

Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 25, 2016, 08: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 "<?php":

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".

Werko
Full Member
***
Offline Offline

Activity: 206
Merit: 100


View Profile WWW
April 25, 2016, 08:49:15 AM
 #13

You can use flash-cookies instead the browser cookies. Is not so easy to manipulate.

~Bitcoin~
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
April 25, 2016, 02:58:43 PM
 #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.

Werko
Full Member
***
Offline Offline

Activity: 206
Merit: 100


View Profile WWW
April 26, 2016, 07:40:47 AM
 #15

Here is a good example.

https://github.com/nfriedly/Javascript-Flash-Cookies

tomaa
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile WWW
April 27, 2016, 06: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.
datalore
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
April 27, 2016, 03:33:37 PM
 #17

How to install?
Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 27, 2016, 03:36:13 PM
 #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 %)

Octopus.pp.ua (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile WWW
April 27, 2016, 03:37:05 PM
 #19

How to install?

Full way, how to install in 12 post: https://bitcointalk.org/index.php?topic=1448604.msg14656996#msg14656996

BitRipped
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
May 01, 2016, 09:51:23 PM
 #20

Nice  Grin very nice.. I will be giving this a try to say to the least. Thank you
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!