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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
To show how to generate a certificate request 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 Servers >> Certificates…

831 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