IP access through .htaccess .... is it possible ?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
HormonX
Forum Commoner
Posts: 50
Joined: Tue Dec 10, 2002 7:43 pm
Location: Toronto

IP access through .htaccess .... is it possible ?

Post by HormonX »

I was wondering if it is possible to restrict access to folder using an IP address or a range of IP adresses .htaccess file.

thanx
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

HormonX
Forum Commoner
Posts: 50
Joined: Tue Dec 10, 2002 7:43 pm
Location: Toronto

Post by HormonX »

Thank you from your post ... i tried to implement this into my .htaccess file and i get Internal Server Error when i save and refresh the page.

This is what i did, If you can let me know if i am doing somthing wrong. I just want my IP address to be allowed to that directory


Code: Select all

<Directory />
   Order Deny,Allow
   Allow from xxx.xxx.xxx.xxx
   Deny from all
</Directory>
any help is appreciated.

thanx
Post Reply