<?php

/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Randem Systems "BotBanishClient" Installation Instructions ver 3.x
// VQMOD package for use with the OpenCart, PHP, mySQL & Apache
// For more information and support.
//
// BotBanish Version 6.1.00
// Website Client Install
// Date: 03/19/2025
//
// BotBanish Website: http://botbanish.com
// BotBanish Support: https://randemsystems.supportindex.php#c18
// Release History: https://randemsystems.supportbotbanish-release-history/
//
// Used to help protect the website from attacks
// Replace your domain root index.php file with this one (BotBanishIndex.php renamed to index.php)
// then have it call your renamed index.php or another .php or .html file
// Make sure you do not have a index.html file in the root. This can lead to confusion.
//
// Change [YourDomainPage.html] to the html or php file that your website would originally run when the domain is accessed
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	global $BotBanishSettings;
	
	$BotBanishSettings['BOTBANISH_CLIENT'] = 1;

//	* * * * * BotBanish * * * * *
	require_once $BotBanishSettings['BOTBANISH_CLIENT_DIR'] . 'BotBanishClient.php';

	BotBanishClient();
	
	if ($BotBanishSettings['BOTBANISH_SERVER'])
		header('https://botbanish.com');

//	header('location: ' . $_SERVER["REQUEST_SCHEME"] . '://' . $_SERVER["SERVER_NAME"] . '/[YourDomainPage.html]');
	
// or if in the same area of your domain you can simply use	header('location: [YourDomainPage.html]');
?>