# HTTP Basic Authentication per network

**URL:** <https://www.ruby-forum.com/t/http-basic-authentication-per-network/192082>\
**Category:** NGINX\
**Created:** [July 23, 2010, 12:24pm UTC](https://www.ruby-forum.com/t/http-basic-authentication-per-network/192082 "2010-07-23T12:24:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel-v8](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@daniel-v8](https://www.ruby-forum.com/u/daniel-v8)\
**Post date:** [July 23, 2010, 12:24pm UTC](https://www.ruby-forum.com/t/http-basic-authentication-per-network/192082/1 "2010-07-23T12:24:48Z")

</div>

Hi,

is it possible to configure a HTTP Basic Authentication on a per network  
base? For example some users coming from an internal/private network are  
not required to authenticate with HTTP Basic Authentication, users from  
all other (external) networks have to authenticate?

Thanks!  
Dan

Posted at Nginx Forum:

> **[HTTP Basic Authentication per network](https://forum.nginx.org/read.php?2,112027,112027#msg-112027)**
>
> Hi, is it possible to configure a HTTP Basic Authentication on a per network base? For example some users coming from an internal/private network are not required to authenticate with HTTP Basic Authentication, users from all other (external)...

---

<div class="post-metadata">

**Author:** ![daniel-v8](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@daniel-v8](https://www.ruby-forum.com/u/daniel-v8)\
**Post date:** [July 23, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/http-basic-authentication-per-network/192082/2 "2010-07-23T12:37:41Z")

</div>

On Fri, Jul 23, 2010 at 2:23 PM, daniel-v8 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> is it possible to configure a HTTP Basic Authentication on a per network  
> base? For example some users coming from an internal/private network are  
> not required to authenticate with HTTP Basic Authentication, users from  
> all other (external) networks have to authenticate?
> 
> Thanks!  
> Dan  
> Hello!

Yes, it is possible:

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

–  
Boris D..

---

<div class="post-metadata">

**Author:** ![daniel-v8](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@daniel-v8](https://www.ruby-forum.com/u/daniel-v8)\
**Post date:** [July 23, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/http-basic-authentication-per-network/192082/3 "2010-07-23T17:24:36Z")

</div>

Thanks a lot! Exactly what I was looking for.

Posted at Nginx Forum:

> **[Re: HTTP Basic Authentication per network](https://forum.nginx.org/read.php?2,112027,112085#msg-112085)**
>
> Hi, is it possible to configure a HTTP Basic Authentication on a per network base? For example some users coming from an internal/private network are not required to authenticate with HTTP Basic Authentication, users from all other (external)...
