Solved

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

Posted on 2009-05-12
3
704 Views
Last Modified: 2012-05-06
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
Comment
Question by:cbccts
3 Comments
 
LVL 4

Accepted Solution

by:
theShao earned 500 total points
ID: 24365517
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
 
LVL 27

Expert Comment

by:caterham_www
ID: 24365532
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
 

Author Closing Comment

by:cbccts
ID: 31580541
Thanks a lot!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now