• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 715
  • Last Modified:

.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?
0
cbccts
Asked:
cbccts
1 Solution
 
theShaoCommented:
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

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now