anti_offline_browser.php
Copyright (C) 2004 Stefan Bauckmeier <stefan@bauckmeier.de>

License
-------
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2,
as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA

What Is It?
-----------
anti_offline_browser.php is a simple script to detect offline browsers and
block site access.
The script was written to save traffic on a website with a attached forum.

Requirements
------------
PHP 4.x (not testet with PHP 5.x, but it should work) with sessions

How to install?
---------------
At first, you should  edit the variables on the config-section of the php-file.
After that, copy the files to your web-directory and as last step, include the
script on your website-files, so it is executed on top of every page of your site. 
(or just sites you wanna protect)

	<? require('/path/to/webdir/anti_offline_browser.php'); ?>

When you have to much time, you can edit the error-page ;)

Where can i get new ip-lists?
-----------------------------
You can download up-to-date ip-lists on http://www.iplists.com/

Changelog
---------
0.2	- rewrite of user agent validation:
		until now, i use a blacklist file for user agents and user agents 
		are only validated on the first visit (this will save some cpu/ram)
	- session will be started if no active session was found
	- some bug fixes
	
0.1	- initial release

Comments
--------
please send comments, suggestions and money (or something else) to
	stefan@bauckmeier.de

Download
--------
Version 0.2 anti_offline_browser_0.2.tar.gz
Version 0.1 anti_offline_browser_0.1.tar.gz