Setting IP restrictions on an apache website

Limiting IP access is a rather efficient way to restrict access to sensitive sites, such as for example phpmyadmin installations.There are multiple ways to archive this, one of the easyer ways is by setting the .htaccess file in the web directory for the specific site:

Order Deny,Allow
Deny from all
Allow from            # the local server    
Allow from         # local subnet
Allow from   # internet subnet
Allow from         # single internet address

The above gives you a series of examples for a local subnet (local internal network), internet subnets or single address.