Apache Request IP Based Security

Posted by connec on Server Fault See other posts from Server Fault or by connec
Published on 2010-05-21T00:11:15Z Indexed on 2010/05/21 0:20 UTC
Read the original article Hit count: 230

Filed under:
|
|
|

I run an Apache server on my home system that I've made available over the internet as I'm not always at my home system.

Naturally I don't want all my home server files public, so until now I've simply had:

Order allow, deny
Deny from all
Allow from 127.0.0.1

in my core configuration and just Allow from all in the htaccess of any directories I wanted publicly viewable.

However I've decided a better system would be to centralise all the access control and just require authentication (HTTP basic) for requests not to 127.0.0.1/localhost.

Is this achievable with Apache/modules? If so how would I go about it?

Cheers.

© Server Fault or respective owner

Related posts about apache

Related posts about apache2