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
705 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

Does Powershell have you tied up in knots?

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…

863 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

23 Experts available now in Live!

Get 1:1 Help Now