?
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
Medium Priority
?
712 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
theShao earned 2000 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses

752 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