| |
|
|
| |
|
Thursday, 23 February 2012
|
|
|
| |
|
|
Bot Defense |
|
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.zipTo 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 | 
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
| |
|
Add comment
|
|
|
|
Comments
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.
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
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?
Should I be seeing this at the top of every page?
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.
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.
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.
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.
$to = "xxx
$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 = "yyy
$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.
RSS feed for comments to this post