Octopus.pp.ua (OP)
|
|
April 24, 2016, 01:16:02 PM |
|
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 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 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: if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50)) { banned(); }
Where function banned(); is 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
Activity: 81
Merit: 10
|
|
April 24, 2016, 02:56:38 PM |
|
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 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 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: if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50)) { banned(); }
Where function banned(); is 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)
|
|
April 24, 2016, 02:59:59 PM |
|
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 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 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: if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50)) { banned(); }
Where function banned(); is 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 setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000); And 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
Activity: 81
Merit: 10
|
|
April 24, 2016, 03:13:43 PM |
|
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 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 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: if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50)) { banned(); }
Where function banned(); is 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 setcookie("Mortal",$_SERVER['REMOTE_ADDR'], time()+3000); And 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
Activity: 81
Merit: 10
|
|
April 24, 2016, 03:27:59 PM |
|
All set now, thank you!
|
|
|
|
Octopus.pp.ua (OP)
|
|
April 24, 2016, 04:50:38 PM |
|
All set now, thank you!
U r wellcome %) I hope, that's can help against bots
|
|
|
|
Marteen23
Member
Offline
Activity: 81
Merit: 10
|
|
April 25, 2016, 12:08:41 AM |
|
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
|
|
April 25, 2016, 12:14:50 AM |
|
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 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 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: if (($_COOKIE['Mortal'] != getIP()) or ((time() - $_COOKIE['Combat']) < 50)) { banned(); }
Where function banned(); is 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
Activity: 112
Merit: 10
★★SatoshiCollector.co.uk★★
|
|
April 25, 2016, 05:14:48 AM |
|
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. I don't wanna refill my wallet till i fix it so please help me & give some advice .
|
|
|
|
Octopus.pp.ua (OP)
|
|
April 25, 2016, 07:55:59 AM |
|
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
|
|
|
|
Octopus.pp.ua (OP)
|
|
April 25, 2016, 07:59:07 AM |
|
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)
|
|
April 25, 2016, 08:16:51 AM |
|
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. 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": 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(); } } }" 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
|
|
April 25, 2016, 08:49:15 AM |
|
You can use flash-cookies instead the browser cookies. Is not so easy to manipulate.
|
|
|
|
~Bitcoin~
Legendary
Offline
Activity: 994
Merit: 1000
|
|
April 25, 2016, 02:58:43 PM |
|
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.
|
| ligma | | | | ███ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ ███ ███ | | ███ ███ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ █ ███ ███ | | |
|
|
|
Werko
|
|
April 26, 2016, 07:40:47 AM |
|
|
|
|
|
tomaa
Newbie
Offline
Activity: 24
Merit: 0
|
|
April 27, 2016, 06:41:45 AM |
|
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
|
|
April 27, 2016, 03:33:37 PM |
|
How to install?
|
|
|
|
Octopus.pp.ua (OP)
|
|
April 27, 2016, 03:36:13 PM |
|
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 %)
|
|
|
|
|
BitRipped
Newbie
Offline
Activity: 25
Merit: 0
|
|
May 01, 2016, 09:51:23 PM |
|
Nice very nice.. I will be giving this a try to say to the least. Thank you
|
|
|
|
|