anti bot 1084 blocked
 
 
 
Thursday, 23 February 2012
 
 
Bot Defense E-mail
User Rating: / 11
PoorBest 

Bot Defense V1.2 - by RankBoosting Team

NEW! Version 1.2 offer you e-mail notification for all spam methods. You'll receive also the user ip not only the server ip. (The rest is the same)

Use this simple code to protect your website against submission bots.

It uses different methods of identifying a bot and redirecting it to a different page. It also keeps a record about the number of blocked attacks and the ip of the spammer/server.


Follow this steps to install the Bot Defense:

1) Download the archive
2) Place it in your root directory of your website
3) Unzip the archive; you should have a new directory called "botdefense"
4) Check the permission for the count_ip.txt and count_file.txt; they must have the permission set to 766
5) Insert this code in the body of all your pages (depending on your site you need to modify a file or more so that the code is loaded on all pages), if you have a template place it there after the <body> tag
code:
<?php include 'botdefense/verbot.php'; ?>
6) Edit your template CSS and add the following code
code:
.something {
    display:none;
    visibility:hidden;}
div.botleft{
    display:block;
    position:fixed;
    bottom:-4px;
    left:0px;
    width:300px;
    background:transparent;
    border:0px;}

7) Load your page in the browser, you should have the Bot Defense logo and the counter in the bottom left corner


To download the current version of click here: botdefense v1_2.zip

To download a different skin for bot defense click here: Logo Color

Note: We can add new features to this code in time, so be sure to check our website for updates.

Older versions here: botdefense v1_1.zip 

Anti Spam Submission Bot

Ver: 1.2   price: Freeware



Quick Help
FAQ
How this works
Testing
Block IP

 By downloading or using our code you agree to our Terms and Conditions
 
 

Comments  

 
0 #13 RankBoosting 2011-02-20 08:55
Quoting Michael Griffin:
Hello,

How do you place "" in a php page? I know you can cause you did it but I just don't know how... I'm pretty new at php, so be polite, lol Thx


You open the file with an editor (notepad, wordpad, anything) and you'll see the code. Follow the steps and you'll have the botdefense.
Quote
 
 
0 #12 Michael Griffin 2011-02-20 05:43
Hello,

How do you place "" in a php page? I know you can cause you did it but I just don't know how... I'm pretty new at php, so be polite, lol Thx
Quote
 
 
+1 #11 RankBoosting 2011-01-16 11:20
Quoting Mike:
I made the changes to permissions, entered my email address but at the top of every page to the left of the box I see "Your CSS is disabled, don't enter any information in this box."
Should I be seeing this at the top of every page?


Check the lines:
$out="\n";
and
$out.="\n";
Do you have "//" before them? if yes, delete the "//".
Also, on our website do you see the same error?
Quote
 
 
0 #10 Mike 2011-01-15 00:32
I made the changes to permissions, entered my email address but at the top of every page to the left of the box I see "Your CSS is disabled, don't enter any information in this box."
Should I be seeing this at the top of every page?
Quote
 
 
0 #9 Steven Dobrowski 2010-09-28 11:33
It's a real pleasure seeing things develop real time, and sincere thanks for your ongoing support. Now off to trial v1.2
Quote
 
 
+1 #8 RankBoosting 2010-09-28 11:09
NEW Bot Defense version 1.2!

We've updated to a new version, containing e-mail notifications for all spam methods: automatic spam submission (this was present in the old version, method used by the most spam bots) and manual spam submission (if a user spams manually executing a script), the rest remain the same. Check the faq section or the readme.txt file for receiving the notifications.
Quote
 
 
+1 #7 RankBoosting 2010-09-28 10:28
The ip address is not echoed. It's recorded in the file count_ip.txt, and also as you can see counter is incremented every time the bot is trapped. Note that the thankyou.php page will be triggered ONLY by the bot so no need for an echo there.
Sure, if you want a simple notification you can copy the e-mail notification from the verbot.php to thankyou.php, but in the $body variable keep only this code $body = "Bot was trapped!\r\nThi s is the IP:".$_SERVER['REMOTE_ADDR'];
There is no need for other info.
In this way you'll receive e-mail notification whatever the spam method.
Quote
 
 
0 #6 Steven Dobrowski 2010-09-28 10:11
Thank you for you very swift responses - a real pleasure!

I look forward to any development that will enable an email to be received via the test pages, before implementing your code fully on my web site.

Meanwhile, I would tell you that no IP address is echoed to the screen when the hit is incremented via thankyou.php and count.php. I thought the IP address and the counter would be displayed?

I can receive emails using a simple code (see my [censored].xxxx.com/test_bot_defens e.php).

Thanks for your help.
Quote
 
 
+1 #5 RankBoosting 2010-09-28 09:41
My mistake, the e-mail notification works only with one spam method (the most popular used by bots). We will try to make it work with all and add a new version. Thank you for your feedback.
So please note that currently you can't test the notification manually, you can test only the counter and the recording of the ip. Don't worry, if a user is not a bot it will not get trapped.
Leave the e-mail notification active and you'll receive e-mails when a bot was trapped.
Quote
 
 
+1 #4 Steven Dobrowski 2010-09-28 08:28
Many thanks. I am still unable to receive emails using the revised script. My code (lines 45-54) is:

$to = "";
$subject = "Bot Defense";
$body = "Bot was trapped!rnThis is the server IP where the spam script is located:".$_SERVER['REMOTE_ADDR']."rnrnCheck count_ip.txt to see if it was recorded! If it's a different ip, the recorded one is the user who executed the spam script.rnrnThis was posted:rn".$b1." | ".$b2." | ".$b3." | ".$b4." | ".$b5." | ".$b6;
$body = stripslashes($b ody);
$from = "";
$headers = "Content-type: text/html; charset=iso-8859-1rn";
$headers = "From: xxx.com rn";
if (mail($to, $subject, $body, $headers)) {

}
----------
The mail address is active.

Test page [censored][cens ored].castleviewuk.com/test_bot_defens e.php.

Many thanks for your help.
Quote
 

Add comment


Security code
Refresh