Password Protect BBClone
By default BBClone does not have password protection so if you upload the files to your server without any changes, anyone would be able to access your visitor statistics.
If your looking to secure your visitor statistics we have created a script which will allow you to password protect your files.
All you need to do is download and extract the authenticate.zip file to your BBClone folder. Edit the authenticate.php file to customise the username, password and redirect location at the top of the script to those of your own.
The redirect location is the web page which should be loaded after completion of a successful login. Leave this as index.php for BBClone, however, if you wish to use this script on other sections of your website feel free to use this as you require.
You will also need to insert the following code at the top of each php page to be secured.
require 'authenticate.php';
For BBClone this will be the following pages:
show_config.php
show_detailed.php
show_global.php
show_regression.php
show_time.php
show_user_agent.php
show_views.php
Once you have done this upload all the amended files and the authenticate.php file to your web server. After this if you attempt to access BBClone you should now encounter a login page before you can access it.
I hope you find this useful.
Best Wishes
Gary


nigeldodd, 11th September 2007, 13:35
The easy but possibly less secure way is to change the name of the bbclone direc
martin, 14th January 2008, 03:20
Good stuff, does exactly what I needed! A minor detail that I thought I should bring to your attention is I had to change: if(isset($_GET['id'])=="logout") to: if($_GET['id'] =="logout") ...because otherwise I wasn't able to access the visits on the detailed stats page. Thanks! <a href="http://www.devcase.com">DevCase</a>
David, 23rd March 2008, 20:36
Thanks for taking the time to post this script. Saved me a lot of time.