PBipcheck – PHP Country Access Blocker (Miscellaneous)

Description:

The PBipcheck tool is a PHP country access blocker and can allow or deny the access to scripts, websites or web applications for visitors from specified countries. It is also possible to specify which bots and spiders can access the site and which are blocked (user agent check). The PBipcheck tool uses a database converter which downloads the GeoLite database from the MaxMind website and converts the data into an IP list which is used to check the access. The data which matches with the IP list is cached to speed up the process. It is possible to have different configurations for different websites or applications. The PBipcheck tool has a well written User Manual of 60 pages (2.1 MB – PDF format).

This script is for everyone who wants to restrict the access to his websites or applications for visitors from specific countries and also specific bots and spiders (You need to know how to upload files to your webhost and how to edit configuration files!)

Please check the User Manual, the Screenshots and the Online-Demo to get more information!

I hope you like this tool!

Included Tools:

  • Menu script to access the tools and logs
  • IP check script (function) to allow or deny the site access
  • Information page to display the status information (return array)
  • Database converter to download and convert the GeoLite database
  • Cache eraser script to delete an existing cache file
  • Two tiny example applications to show the integration of the tool

Features:

  • Block or allow the visitors from specific countries
  • Block or allow the bots specified in the configuration file
  • Exceptions for specified IP addresses
  • Very extensive user manual of 60 pages
  • The user manual covers the installation, configuration and use
  • Menu page with links to all the tools, examples and the manual
  • Database converter to convert the GeoLite data into an IP list
  • Converter downloads the GeoLite database from MaxMind
  • Script / function which can be included into your own projects
  • Information array returned by the function
  • Info page which displays the content of the information array
  • Cache eraser tool to clear the IP number cache
  • Logfile for allowed and/or denied access
  • Two small example applications are included
  • Examples show how to integrate the script into your own projects
  • Different configuration options (logging, exceptions, cache size…)
  • Different configurations can be used for different projects
  • Just exit the script if a visitor is blocked
  • Display an error (500 Internal Server Error) for blocked visitors
  • Forward blocked visitors to another URL
  • Matching results (allowed or blocked) are cached
  • Easy installation (upload/copy the files, set permissions)
  • Easy configuration (edit the configuration files)
  • Full source code available (PHP, HTML and CSS)
  • Low hard- and software requirements
  • No MySQL database needed

Requirements:

  • Linux, Unix or Windows based webserver like Apache
  • FTP access to your webserver (for installation)
  • Possibility to change directory/file permissions on host
  • ZIP compression and archive extension installed and enabled
  • FTP client application like Filezilla (for installation)
  • PHP version >= 5.2 installed
  • New webbrowser like Internet Explorer, Firefox or Opera

Integration:

The following PHP code is the example application 1 and shows, how easy it is to use this tool in your own projects:

<?php
chdir(dirname(__FILE__)."/check");
include("ip_check.php");
echo "Application 1 - Access allowed!";

Please read the User Manual to see more examples and how to use this tool in your own application!

Live Preview:

Here you can try the online demo: Online-Demo

Screenshots:

Here you can check the screenshots: Screenshots

Documentation:

Here you can read the user manual (2.1 MB – PDF format): User Manual

Support:

If you need support, please use the Contact Form on my Author Page and we are glad to help!

You can also use the Comments Page to submit a question!

Feedback:

If you like the script we would like to get your feedback on the Comments Page and maybe you could rate the script :-)

Versions (Updates):

  • 29.03.2013 – Version 1.5 – Initial release on Codecanyon

Download PBipcheck – PHP Country Access Blocker (Miscellaneous)

Leave a Reply

Your email address will not be published. Required fields are marked *