.htaccess .htpasswd: Can you allow an ip range access w/o having to login, while everyone else will need to login?

I have a website that sits in our DMZ, i want to use a .htaccess file require username/passwd to view the site from the internet; however, if you are apart of our internal address scheme, I'd like it if you didn't have to login.

Is this possible?
cbcctsAsked:
Who is Participating?
 
theShaoConnect With a Mentor Commented:
Try modifying the attached .htaccess for your environment

Order deny,allow
 
Deny from all
 
AuthName [Challenge text]
AuthUserFile [Auth File location]
AuthType [Auth Type]
 
Require valid-user
 
Allow from 192.168.
 
Satisfy Any

Open in new window

0
 
caterham_wwwCommented:
You'll have to grad access for a specific ip address range like
Satisfy any
Order deny,allow
deny from all
allow from 192.168

Open in new window

0
 
cbcctsAuthor Commented:
Thanks a lot!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.