Welcome to WebmasterWorld Guest from 3.231.229.89

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Allowing IP into specific directories only

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

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:5050
votes: 61


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.

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


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]

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

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:5050
votes: 61


<deleted- ill try it myself>

Thanks Jim!

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members