• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • 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?
1 Solution
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

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

cbcctsAuthor Commented:
Thanks a lot!
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.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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