Author Topic: Installation Process For Any General Website  (Read 586 times)


  • Administrator
  • Hero Member
  • *****
  • Posts: 2681
Installation Process For Any General Website
« Reply #1 on: September 23, 2017, 12:59:38 PM »
BotBanish is a client/server application and will check regularly with the BotBanish server for information regarding a bot attack and any maintenance that will need to be done to keep the system is a high state of readiness.

        BotBanish will work in conjunction with other bot protectors but is your first line of defense to help aid in the reduction of bot traffic and access to your forum. We also suggest that you add CAPTCA to your forum to help with bot denial

BotBanish Requires PHP, mySQL & Apache for any general website
and the installation process is as follows:

  • Check to see if PHP Version 5.4.19 is installed (Probably at least PHP version 5.3.x) with mysqli version 5.5.19. You can execute the included info.php file to check for these installations. Place the info.php file in the root folder of your hosted site then type in your browser is your actual hosted domain name, use http:// or https:// accordingly.

  • Update the APIKEY in the BotBanish/bot/Client/Settings_Client.php file to match the APIKEY that you have obtained from for your domain. Also update the email address in this file ($botbanish_webmaster_email) so that you will get an email when BotBanish blocks an attack.

  • Create a mySQL database on your host then modify the Settings_Client.php file to match your database parameters. The BotBanish installation will create all the tables that it needs in the database prefixed with botbanishclient_. Change the following parameters:

            define(BOTBANISH_SERVERNAME, "localhost or host name / IP of your database");
            define(BOTBANISH_USERNAME, "YourUserName");
            define(BOTBANISH_PASSWORD, "YourPassword");
            define(BOTBANISH_DBNAME, "YourDatabaseName");

  • Upload the BotBanish folder to your root folder location.

  • Use the contents of our index.php file as a guide to put it's code into your default index page.

  • If you have set an error handler in your php code, change the error handler code in our code to match that call. If you do not have an error handler just comment out the error handler call in our index.php code.

  • Report to the URL of the pages that you want to protect (normally Login & Registration pages). We may already be protecting them but it is better to be sure.

  • In your browser type to start the installation of BotBanish.

  • BotBanish will create the needed tables then attempt to import from your root .htaccess file into the BotBanish ip table any IP firewall rules that are present for future use.

  • BotBanish is now protecting you from bots, spiders and user attacks. Each time someone or something is accessing your site BotBanish is checking them out and monitoring them for suspicious behavior.

BotBanish Black / White List Tables Created in Your Database:
  • botbanishclient_ip_dnb: Used to allow a known IP to access your system even though BotBanish may attempt to monitor and block it.

  • botbanishclient_spiders_bad: Used to allow a known bad spider to access your system even though BotBanish may attempt to monitor and block it.

  • botbanishclient_spiders_good: Used to allow a known good spider to be blocked from accessing your system even though BotBanish will allow it.

  • botbanishclient_domain_bad: Used to allow a known bad domain to access your system even though BotBanish may attempt to monitor and block it.

  • botbanishclient_domain_good: Used to allow a known good domain to be blocked from accessing your system even though BotBanish will allow it.

  • botbanishclient_url_dnc: Used to disallow BotBanish from monitoring a URL for bad behavior.

  • botbanishclient_ip: Used to record ip's that have been blocked from accessing your system.

BotBanish Analytics Tables Created in Your Database:
  • botbanishclient_website_downloads: Used to retain user file download analytics.

  • botbanishclient_website_visits: Used to retain user webpage visit analytics.

To access BotBanish Analytics; in the URL type PROTOCOL://YOURDOMAIN/BotBanish/bot/Scripts/BotBanishAnalytics.php
Where YOURDOMAIN is your actual domain name and PROTOCOL is http or https accordingly.

Code that should be placed near the top on your html pages that you want BotBanish to monitor.

Code: [Select]
<div name="divHrefB" style="height: 0px;width: 0px;overflow:hidden;"> "<a href="">Register</a></div>


$location rtrim(getcwd(), '/') . '/';
require_once ($location .'BotBanish/bot/Client/Settings_Client.php');
require_once ($location .'BotBanish/bot/Client/BotBanishClient.php');


Your index.php file should basically have entries something like these:

Code: [Select]


header('Content-type: text/html; charset=ISO-8859-1');

$location rtrim(getcwd(), '/') . '/';
require_once ($location .'BotBanish/bot/Client/Settings_Client.php');
require_once ($location .'BotBanish/bot/Client/BotBanishClient.php');

header('location: ' $_SERVER["REQUEST_SCHEME"] . '://' $_SERVER["SERVER_NAME"] . '/YOURPAGE.html');

Download the latest version at