You are on page 1of 1

Restrict Access to Apache http Server by IP address(es) or subnet(s)

If you have a resource that should only by accessed by a certain network, or IP address you
can enforce this in your apache configuration. For instance if you want to restrict access to
your intranet to allow only the 176.16 network:

Order Deny,Allow
Deny from all
Allow from 176.16.0.0/16

Or by IP:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

You might also like