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!

.htaccess 1

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
How do i allow all ips from my local domain to not have to enter a password with a .htaccess file
is it something like

Allow from 192.168.0.*

or something?
i want to allow all ips from 192.168.0.* to access it
 
Hi,

What you can do is to combine authentication methods and use the 'Satisfy Any' directive to allow either way to be sufficient . For example, something like this :

order deny,allow
deny from all
allow 192.168.0
Authname "whatever"
AuthType Basic
AuthUserFile /var/Require valid-user
Satisfy any

(obviously point it at your correct password file)

Hope this helps
 
that clarifies things .. thanks much again!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top