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 127.0.0.1            # the local server    
Allow from 10.25.8.0/22         # local subnet
Allow from 188.202.106.248/28   # internet subnet
Allow from 82.94.32.247         # single internet address

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