Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing to directory without password in .htaccess 1

Status
Not open for further replies.

haneo

Programmer
Jan 2, 2002
274
CA
to make a directory accessible with password i have just to create a file .htaccess in this directory

----
AuthName "Admin access"
AuthType Basic
AuthUserFile /var/require valid-user
---
and create .htpasswd file with htpasswd command to give a password to authorized users.

But how can grant access to some IP without password ?
I am sure that there is some words to input to .htaccess to let pc with some IP to access without password

Thanks very much ;-)
 
thanks wullie for your help !
But it don't work :-(

i have now in the directory the file .htaccess :

AuthName "Admin access"
Allow From MyIP_HERE
AuthType Basic
AuthUserFile /var/require valid-user

Any suggestions ?
Thanks in advance.
 
I have just fixed my proble my .htaccess look like:

AuthName "Admin access"
AuthType Basic
AuthUserfile /home/amine/cours-linux/test/usthb/.htpasswd
<LIMIT GET POST>
order deny,allow
deny from all
allow from MyIP_HERE
require valid-user
satisfy any
</LIMIT>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top