HTCountryBlock Package

Country blocking designed for web sites
running on "shared servers"

by Maurice Randall <>

December 7, 2009

This is the documentation for the htcountryblock package available for free downloading from

To protect your web site, clickable links to the outside world are not used in this document.

1. Copyrights, etc

2. Introduction

3. Requirements

4. Setting up

5. Build the database

6. Using the software

7. Block those countries

8. Edit the countrycheck.php file

9. Create or modify your .htaccess file(s)

10. Test your website

11. More stuff for the .htaccess file

12. Using password protection

13. Web site performance

14. The end, and thanks for using this