Forum Moderators: phranque

Message Too Old, No Replies

Allowing IP into specific directories only

         

brotherhood of LAN

11:53 pm on Dec 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As per my other question [webmasterworld.com...]

I want to set up a folder, say /blah/ that allows requests from a certain IP, but any request outside that folder is denied.

I have access to the http.conf file, but an .htaccess solution would be just as good, either way works for me.

Any pointers/code appreciated much.

jdMorgan

12:08 am on Dec 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BOL,

Create an htaccess file in that directory that contains:


<Files *>
Order Deny,Allow
Allow from 192.168.0.1
Deny from all
</Files>

Change the IP address to suit...

Jim
<edit> Formatting </edit>

[edited by: jdMorgan at 1:00 am (utc) on Dec. 3, 2003]

brotherhood of LAN

12:10 am on Dec 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<deleted- ill try it myself>

Thanks Jim!