Page 1 of 1

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

Posted: Sat Jun 10, 2006 10:54 pm
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

Posted: Sat Jun 10, 2006 11:18 pm
by feyd

Posted: Sat Jun 10, 2006 11:58 pm
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