Allow IP range or specific IP to exclusively view a web page

locate the httpd.conf file

To allow IP range 1.2.3.0 to 1.2.3.255 add the following

<Files explorer.php>
Order deny,allow
Allow from 1.2.3
Deny from all
</Files>

To allow IP 1.2.3.4 only use the following

<Files explorer.php>
Order deny,allow
Allow from 1.2.3.4
Deny from all
</Files>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s